Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-09-11 05:10:16


>What about throwing an exception?
>
>try{
> size = checked(_1 + _2 etc)(...);
>}
>catch (std::runtime_error e){
>
>}

Actually, your suggestion is what I started with. But I rejected it because "size = something" should be checked too. I should have put it to the Wiki though as it's not a trivial thing.

--
Alexander Nasonov

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