[numeric/conversion] doc's example not up-to-date

Is the documentation for numeric/conversion finalized yet ? It seems that at least the code sample in numeric/conversion/doc/numeric_cast.html hasn't been kept up-to-date. This sample 1/ includes inexistent header 2/ uses boost::bad_numeric_cast instead of boost::numeric::bad_numeric_conversion and same for the other exception classes and most of all : 3/ // This works, because unsigned integral types cannot cause overflow. unsigned char c=numeric_cast<unsigned char>(l); But this line does raise an overflow exception (as it should, I guess). I guess the comment was about unsigned types implementing modulo-arithmetics, but in the end does numeric_cast check for unsigned overflows, or not ?? -- Samuel

Hi Samuel, Oh, I'm sorry.. I was aware that there were lots of missing parts in the documentation but I thought I had fix all the "mistakes"... Seems I had not. I'll try to fix this ASAP. Thank you for the report. Fernando Cacciola
participants (2)
-
Fernando Cacciola
-
Samuel Krempp