Boost logo

Boost :

Subject: [boost] [xpressive] Is there a way to test for an empty regex?
From: Michael Goldshteyn (mgoldshteyn_at_[hidden])
Date: 2008-11-19 16:33:39


What is the best way to test for an empty boost::xpressive::regex object?

That is, if I have code like:

boost::xpressive::sregex re;

...

// Test if re is empty and should not be used to perform a regex_search
if (?????)

Thanks,

Michael Goldshteyn


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