Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] MSVC 2008 (VC9) fails tocompileregex_raw_buffer.hpp on 1_49
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-02-25 11:34:05


AMDG

On 02/24/2013 11:19 AM, Larry wrote:
> It is an include order problem although I don't know specific issue yet.
> I moved the include for regex.hpp up front and the error went away.
>

The issue is that new is #defined somewhere. The
definition is (approximately)

#define new new(__FILE__, __LINE__)

Look at the arguments in the error message:

> 1>c:\boost\include\boost-1_49\boost\regex\v4\regex_raw_buffer.hpp(184) : error C2665: 'operator new' : none of the 6 overloads could convert all the argument types
> 1> while trying to match the argument list '(const char [64], long)'

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net