--- trunk/src/utils/StringUtils.hpp 2005/02/07 19:13:18 295 +++ trunk/src/utils/StringUtils.hpp 2005/02/07 19:13:43 296 @@ -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;