Changeset 1195


Ignore:
Timestamp:
Feb 29, 2008, 10:50:18 PM (16 years ago)
Author:
Peter
Message:

fixed bug in convert function

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/utility_test.cc

    r1000 r1195  
    105105  }
    106106
    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");
    109112
    110113  if(ok)
  • trunk/yat/utility/utility.h

    r1057 r1195  
    9090      return std::numeric_limits<T>::infinity();
    9191    if (is_equal(s, "-inf"))
    92       if (std::numeric_limits<T>::is_signed())
     92      if (std::numeric_limits<T>::is_signed)
    9393        return -std::numeric_limits<T>::infinity();
    9494      else
Note: See TracChangeset for help on using the changeset viewer.