Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-09-11 04:24:03


"Alexander Nasonov" <alnsn_at_[hidden]> wrote in message
news:45050C11.000002.25346_at_mfront8.yandex.ru...
>I recently wrote a proposal:
> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?SecureIntegerOperations

What about throwing an exception?

try{
    size = checked(_1 + _2 etc)(...);
}
catch (std::runtime_error e){

}

Its a great idea though anyway.

regards
Andy Little


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