Re: R: R: Squid 3 build errors on Visual Studio - problem still present

2009-08-30 Thread Robert Collins
On Sun, 2009-08-30 at 18:13 +0200, Guido Serassio wrote:
> Hi,
> 
> I don't know what is std::string::npos, and so I don't know what to look
> for 

http://www.cplusplus.com/reference/string/string/npos/

It should be a static const, which is why I'm so surprised you're
getting an error about it.

-Rob


signature.asc
Description: This is a digitally signed message part


R: R: Squid 3 build errors on Visual Studio - problem still present

2009-08-30 Thread Guido Serassio
Hi,

I don't know what is std::string::npos, and so I don't know what to look
for 

Regards

Guido

Guido Serassio
Acme Consulting S.r.l.
Microsoft Gold Certified Partner
Via Lucia Savarino, 110098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135   Fax. : +39.011.9781115
Email: guido.seras...@acmeconsulting.it
WWW: http://www.acmeconsulting.it



> -Messaggio originale-
> Da: Robert Collins [mailto:robe...@robertcollins.net]
> Inviato: domenica 30 agosto 2009 10.00
> A: Guido Serassio
> Cc: Amos Jeffries; squid-dev@squid-cache.org
> Oggetto: Re: R: Squid 3 build errors on Visual Studio - problem still
> present
> 
> On Sun, 2009-08-30 at 09:48 +0200, Guido Serassio wrote:
> >
> > c:\work\nt-3.0\src\SquidString.h(98) : error C2057: expected
constant
> > expression
> >
> > The offending code is:
> >
> > const static size_type npos = std::string::npos;
> 
> Can you find out what std::string::npos is defined as in your
compiler's
> headers?
> 
> Thanks,
> Rob


Re: R: Squid 3 build errors on Visual Studio - problem still present

2009-08-30 Thread Robert Collins
On Sun, 2009-08-30 at 09:48 +0200, Guido Serassio wrote:
> 
> c:\work\nt-3.0\src\SquidString.h(98) : error C2057: expected constant
> expression
> 
> The offending code is:
> 
> const static size_type npos = std::string::npos;

Can you find out what std::string::npos is defined as in your compiler's
headers?

Thanks,
Rob


signature.asc
Description: This is a digitally signed message part


R: Squid 3 build errors on Visual Studio - problem still present

2009-08-30 Thread Guido Serassio
Hi,

The patch from Amos fix the warning (not blocking problem), but the
compile problem is still present, and I don't know how to fix it.

Any file including SquidString.h doesn't build with following error:

c:\work\nt-3.0\src\SquidString.h(98) : error C2057: expected constant
expression

The offending code is:

const static size_type npos = std::string::npos;
 
Regards

Guido


> 
> Hi Amos,
> 
> > > Hi,
> > >
> > > Who can help me to fix the following C++ errors on Visual Studio ?
> > >
> > > 1>auth_basic.cc
> > > 1>c:\work\nt-3.0\src\SquidString.h(97) : error C2057: expected
> constant
> > expression
> > > 1>../../../src\auth/User.h(39) : warning C4099:
> 'AuthUserHashPointer' :
> > type name first seen using 'struct' now seen using 'class'
> > > 1>../../../src\auth/Gadgets.h(51) : see declaration of
> > 'AuthUserHashPointer'
> > >
> > > Regards
> > >
> > > Guido
> > >
> >
> > I think the TODO just needs to be enacted.
> > Changing the 'struct' to 'class'.
> >
> 
> I need some hints for the SquidString.h error: it's a blocking error.
> I remember you that my C++ knowledge is too much limited.
> 
> Regards
>

Guido Serassio
Acme Consulting S.r.l.
Microsoft Gold Certified Partner
Via Lucia Savarino, 110098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135   Fax. : +39.011.9781115
Email: guido.seras...@acmeconsulting.it
WWW: http://www.acmeconsulting.it