
4 Apr
2006
4 Apr
'06
10:35 a.m.
John Maddock wrote:
There is a no_except flag that can be passed the regex constructor/assign methods to disable throwing of exceptions:
boost::regex e("bad**string", boost::regex_constants::perl | boost::regex_constants::no_except);
if(e.empty()) { std::cout << "oops" << std::endl; }
However, I notice that I removed all mention of this from the docs when I updated the interface to match the TR1 spec. It's non-the-less still supported however.
Hi John, Was that an oversight, or an explicit decision made as part of the "standardisation"? I'd hate for the latter to be true (much as I prefer exceptions when available for this sort of handling). Regards, [)o IhIL..