Boost logo

Boost :

From: Wang Weiwei (wwwang_at_[hidden])
Date: 2006-07-15 21:27:14



>Wang Weiwei wrote:
>>> Hello,
>>>
>>> I have done a test, on WinXP + VS.net 2003, with regex lib as
>>> follows ,
>>>
>>> A created a new 'Win32 Console Project', I selected MFC and
>>> pre-compiled header support. Leave other settings default.
>>>
>>> Then I created a skeleton project that can compile. Then I added
>>>
>>> #include <boost/regex.hpp>
>>>
>>> in the main cpp file. When I then compiled the program in debug
>>> mode, I got a "error C2665" at regex_raw_buffer.hpp(177) - ¡°operator
>>> new.
>>> When I compiled it in release mode, it's Ok.
>>>
>>> Anybody know how about this phenomenom?
>
>Weird, no.
>
>Regex is used and tested with VC8 a lot, although I admit I'm not in a
>position to test it with MFC. It's not as simple as adding:
>
>#include <new>
>
>to the top of that file is it?
>
>John.
>
Hello John,

Thank you for your hint. But unfortunately the error persists after I adding

#include <new>

before

#include <boost/regex.hpp>

Max


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk