Boost logo

Boost Users :

Subject: [Boost-users] error C2661: 'operator new' : no overloaded function takes 3 arguments
From: bidhan chandra gupta (bidhan_mail_at_[hidden])
Date: 2010-04-29 16:13:09


Hi,

I have a simple pattern matching console based program something like below:

#include
void example()
{
...
boost::regex pattern("[a-zA-Z]");
                
if (boost::regex_match(line, pattern)){...}
...
}
While compiling this program in VS2008, I get following error:
error C2661: 'operator new' : no overloaded function takes 3 arguments
        ..\boost_1_35_0\boost\regex\v4\regex_raw_buffer.hpp(177)
error C2059: syntax error : '*' ..\boost_1_35_0\boost\regex\v4
\perl_matcher_non_recursive.hpp 99

Need your help to fix this.

Thanks



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