put in place check for value error

This commit is contained in:
Jarryd Beck 2014-10-13 18:05:01 +11:00
parent aa0a3a415c
commit 65c13302b4

View File

@ -48,7 +48,13 @@ namespace cxxopts
parse_value(const std::string& text, T& value)
{
std::istringstream is(text);
is >> value;
if (!(is >> value))
{
}
if (!is.eof())
{
}
}
template <typename T>