
Hello boosters,
First, apologies if this has been discussed before - I did some googling
and could not find it. I've bumped into an interesting issue while using
Boost.Regex. The documentation states:
http://www.boost.org/libs/regex/doc/basic_regex.html
Effects: Constructs an object of class basic_regex. The
postconditions of this function are indicated in the table:
Element Value
empty() true
size() 0
str() basic_string<charT>()
Using 1.33, I get empty() set to false with the default constructor. In
addition, if you attempt to search using an empty regex, the program
segfaults. The following example demonstrates the problem:
code:
------
#include <iostream>
#include <string>
#include