Re: [boost] [regex]Including regex.hpp causes error in anskeletonwin32 project of VS.net2003 with MFC support

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
participants (1)
-
Wang Weiwei