Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2002-11-07 09:02:07


"John Maddock" <jm_at_[hidden]> writes:

>> We are having some problems with using boost.regex without exceptions.
>>
>> If a faulty regex is entered the app usually crashes with a SIGFPE
>> signal.
>>
>> Is it any way to check that a regex is valid?
>> (when not using exceptions)
>>
>> boost::regex e("a(");
>>
>> works fine... but when used app crashes.
>
| It's not actually documented, but use the set_expression member function and
| check to see if the return value is zero (expression compiled OK), or not.

Ok, great. Thanks.

-- 
	Lgb

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