I have been a boost users for years, but this is the first time I've come
across a problem with using it. I'm posting this in the hopes that one of
you will say "oh yeah you did 'X' wrong", because I have been beating my
head against the wall with this for some time. Thanks for taking a look.
-- Michael Lindner
I have the following program:
#include "boost/regex.hpp"
#include <string>
int
main(int argc, char** argv)
{
std::string re("[123]abc");
boost::regex reg(re);
return 0;
}
It compiles and runs just fine on my Mac and Linux machines. On Windows,
however, it compiles fine, and runs fine compiled under the "Debug"
configuration. When I change that to "Release" however, it crashes with the
following stack trace:
msvcr90.dll!7858cc9d()
msvcr90.dll!7858ccb5()
dme.exe!boost::re_detail::w32_
transform() + 0xd5 bytes C++
dme.exe!boost::re_detail::w32_regex_traits_implementation<char>::transform()
+ 0x21 bytes C++
dme.exe!boost::re_detail::find_sort_syntax ::regex_data dme.exe!boost::basic_regex ::do_assign() + 0x5f bytes C++ dme.exe!boost::basic_regex ::assign(const char * p1=0x0012ff4c, const char * p2=0x0012ff54, unsigned
int f=0) Line 380 C++ dme.exe!boost::basic_regex ::assign ::basic_regex dme.exe!boost::basic_regex