|
Boost : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-03-26 02:30:17
Jeff Garland wrote:
> ---------------------------
> Safe Integer
>
> Introduction: Implement 'safe int' class template which supports all C++
> arithmetic and boolean operators and will ensure client notification on
> all failures such as arithmetic overflow and underflow.
See also
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?SecureIntegerOperations
Basically, it is a wrapper for lambda expressions
int i = /* ... */;
bool ok = is_mathematically_correct(++_1)(i);
-- Alexander Nasonov http://nasonov.blogspot.com Everything done in weakness fails. Moral: Do nothing. -- Friedrich Nietzsche -- This quote is generated by: /usr/pkg/bin/curl -L http://tinyurl.com/veusy \ | sed -e 's/^document\.write(.//' -e 's/.);$/ --/' \ -e 's/<[^>]*>//g' -e 's/^More quotes from //' \ | fmt | tee ~/.signature-quote
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk