Boost logo

Boost :

From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2004-01-05 13:09:15


[Stephan T. Lavavej]
> I still see the problem with Boost CVS 20040104.

[John Maddock]
> That issue should have been fixed at least 6 months ago,
> probably longer, can you please post a complete test case?

I provided a complete test case in my original message; you might have
missed it because of the way I presented it.

The code is:

#include <iostream>
#include <boost/regex.hpp>
using namespace std;
using namespace boost;

int main() {
    cout << regex_match("a", regex(".*")) << endl;
    cout << regex_match("a", regex(".*?")) << endl;
}

When I compile and run this, it prints:

1
0

It really should print two 1's. Try the same thing using the Perl
interpreter, which does print two 1's.

Stephan T. Lavavej
http://nuwen.net


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk