I just installed the boost lib and visual studio on my new laptop.
I'm getting the following error while trying to run my code:
Assertion failed: r != 0, file libs\regex\build\..\src\w32_regex_traits.cpp, line 125
The error occurs when running in debug 32bit, but works when using release instead of debug. This is my snippet:
#include <iostream>
#include <boost/regex.hpp>
int main()
{
boost::regex("hello word", boost::regex::icase);
}
I tried to re-install VS2019 and the boost lib, but the problem persists.
Any ideas what could be the cause of the error?
The assert is here:
It looks like LCMapStringA function fails.
I do not think these conditions are ignorable. They might lead to Undefined Behavior. So, perhaps you can use the debugger to get the value of
GetLastErrorat the point when it failed to get more information.Depending on the kind of failure you