Boost logo

Boost :

From: Phil Nash (phil.nash.lists_at_[hidden])
Date: 2006-04-04 06:35:15

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
I'd hate for the latter to be true (much as I prefer exceptions when
available for this sort of handling).



Boost list run by bdawes at, gregod at, cpdaniel at, john at