
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?SecureInteger... 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