Re: 3.3.9 build error in SquidString.h

From: Kinkie <gkinkie_at_gmail.com>
Date: Wed, 25 Sep 2013 15:00:40 +0200

Hi,
  long-term solution: merge StringNG ;)
Short-term solution: maybe a const_cast?

On Wed, Sep 25, 2013 at 2:39 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> As some of you know I have been working with a sponsor to get Windows builds
> going again this year.
>
> Visual Studio is giving me a strange error though in our SquidString.h code:
> error C2057: expected constant expression
>
> this is occuring on the code line:
> statis const size_type npos = std::string::npos;
>
> any ideas about how to solve this one properly? for now we are having to
> just define it as -1 by looking up the VC header files definitions of
> std::string::npos manually.
>
> Amos

-- 
    /kinkie
Received on Wed Sep 25 2013 - 13:00:49 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 25 2013 - 12:00:16 MDT