Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2022-05-29 14:10:15


On 5/28/22 3:39 PM, Andrzej Krzemienski via Boost wrote:
> Hi Everyone,
> I wanted to share an observation. A number of Boost libraries, in
> documentation, when it comes to demonstrating that a given function throws
> an exception, has a code sample like the following:
>
> try {
>> lib::function();
>> }
>> catch(lib::exception const&) {
>> // handle failure
>> }
>>

Could you explain what's wrong with the above code?

Robert Ramey

> Regards,
> &rzej;
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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