Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] MSVC 2008 (VC9) fails tocompileregex_raw_buffer.hpp on 1_49
From: Larry (lknain_at_[hidden])
Date: 2013-02-25 20:13:26


Thanks Steven. I just haven't tracked down where the #define is yet. Moving
the #include "fixed" it for the moment but I will wade through the various
includes to track down the #define. Doing a #define for new() is not
something I would do.

Larry

-----Original Message-----
From: Steven Watanabe
Sent: Monday, February 25, 2013 11:34 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [Regex] MSVC 2008 (VC9) fails
tocompileregex_raw_buffer.hpp on 1_49

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 mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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