--- trunk/OOPSE-2.0/src/utils/StringUtils.hpp 2005/02/01 22:49:23 1962 +++ trunk/OOPSE-2.0/src/utils/StringUtils.hpp 2005/02/07 19:13:43 1980 @@ -122,8 +122,8 @@ namespace oopse { template T lexi_cast(const std::string& str) { T result; - std::istringstream iss; - if (iss >> result) { + std::istringstream iss(str); + if (!(iss >> result)) { std::cerr << "lexi_cast Error" << std::endl; } return result;