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

From: Guido Serassio <guido.serassio_at_acmeconsulting.it>
Date: Wed, 2 Sep 2009 21:11:32 +0200

Hi,

OK, but what next ?

Regards

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

> -----Messaggio originale-----
> Da: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
> Inviato: martedì 1 settembre 2009 10.43
> A: Henrik Nordstrom
> Cc: Guido Serassio; Robert Collins; squid-dev_at_squid-cache.org
> Oggetto: Re: R: R: R: Squid 3 build errors on Visual Studio - problem
> still present
>
> Henrik Nordstrom wrote:
> > mån 2009-08-31 klockan 13:40 +0200 skrev Guido Serassio:
> >> Hi,
> >>
> >> I have found this definition:
> >>
> >> http://msdn.microsoft.com/en-us/library/tbbk8hs6(VS.80).aspx
> >>
> >> Hoping that helps.
> >
> > Matches the standard definition from what I can tell, and should not
> > cause any errors...
> >
> > Regards
> > Henrik
> >
>
> Ah, well. It seems that npos "may not work" if its "int or unsigned"
>
> We do this:
> include/config.h:typedef unsigned int size_t;
> src/SquidString.h: typedef size_t size_type;
> src/SquidString.h: const static size_type npos = std::string::npos;
>
> making SquidString::size_type == size_t == unsigned int
>
>
> But, the complaint is about "constant expression" being expected?
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
> Current Beta Squid 3.1.0.13
Received on Wed Sep 02 2009 - 19:11:41 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 12:00:04 MDT