Changeset 1195
- Timestamp:
- Feb 29, 2008, 10:50:18 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/utility_test.cc
r1000 r1195 105 105 } 106 106 107 108 107 if (utility::convert<double>("1.23")!=1.23) 108 ok = false; 109 utility::convert<double>("-inf"); 110 utility::convert<double>("inf"); 111 utility::convert<double>("NaN"); 109 112 110 113 if(ok) -
trunk/yat/utility/utility.h
r1057 r1195 90 90 return std::numeric_limits<T>::infinity(); 91 91 if (is_equal(s, "-inf")) 92 if (std::numeric_limits<T>::is_signed ())92 if (std::numeric_limits<T>::is_signed) 93 93 return -std::numeric_limits<T>::infinity(); 94 94 else
Note: See TracChangeset
for help on using the changeset viewer.