Fix remaining character check

This commit is contained in:
Nagy Zsolt 2015-01-23 18:25:17 +01:00
parent 2144fbcc58
commit 44de7726f8

View File

@ -387,7 +387,7 @@ namespace cxxopts
throw argument_incorrect_type(text);
}
if (!is.eof())
if (is.rdbuf()->in_avail() != 0)
{
throw argument_incorrect_type(text);
}