Following small program does not give the expected result. It prints
some big negative value if compiled with my gcc 3.4.3 on linux or
intel-linux 8.1.
However commenting out either (one suffices) of the commented out lines
makes it work correctly. I don't understand what is happening here, can
anybody what is wrong with this function 'convert' or is the use of the
conversion library wrong?
<code>
#include
::convert( arg ) ; return temp ; }
int main() { int big = 900 ; ptrdiff_t diff = 16 ; std::cout << std::min( big, convert< int >( diff ) ) << std::endl ; return 0 ; } </code>