id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 200,"cast.hpp: greater_than_type_max int/uint",nobody,david_abrahams,"{{{ Submitted by holger.joukl@lbbw.de File boost/boost/boost/cast.hpp: If the greater_than_type_max check method is called in this specialization: greater_than_type_max.check(x, y) with unsigned int x and int y=INT_MAX, and x is bigger than INT_MAX, the check fails. Maybe it could be done this way (but I am C++ newbie, so I might overlook the subtleties): *** cast.hpp.orig Wed Sep 17 11:45:33 2003 --- cast.hpp Wed Sep 17 11:47:12 2003 *************** *** 295,301 **** // will work with every compiler I know of. template static inline bool check(X x, Y) ! { return static_cast(static_cast(x)) != x; } }; #else // use #pragma hacks if available --- 295,301 ---- // will work with every compiler I know of. template static inline bool check(X x, Y) ! { return (static_cast(static_cast(x)) != x) || (static_cast(x) < 0); } }; #else // use #pragma hacks if available }}}",Bugs,closed,,None,None,,Wont Fix,,