1

I encountered some problems when using boost::xpressive of boost1.58 on Visual C++ 2013.

My test program that using below code spills errors like below.

This error does not occur on Release mode.

Is this a boost's bug?

sregex reg = sregex::compile("\\");

Error:

e:\dev\vs2013projects\sandbox\sandbox\sandbox.cpp(35) : see reference to function template instantiation 'boost::xpressive::basic_regex>>> boost::xpressive::basic_regex>>>::compile(const char *,boost::xpressive::basic_regex>>>::flag_type)' being compiled 1>
e:\dev\vs2013projects\sandbox\sandbox\sandbox.cpp(35) : see reference to class template instantiation 'boost::xpressive::basic_regex>>>' being compiled

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
tensor5375
  • 126
  • 1
  • 9
  • 1
    on a unrelated (I think) note: that's not a valid regex. A \ escape requires a following character. To match a single \ char, use `"\\\\"` or `"\\x5c"` – sehe Apr 18 '15 at 20:50
  • 1
    Alternatively, `R"(\\)"`. Works much better the more you would have to otherwise escape. – chris Apr 18 '15 at 20:56

0 Answers0