Merge pull request #11 from nzsolt222/fix

Fix remaining character check
This commit is contained in:
jarro2783 2015-01-24 09:58:26 +11:00
commit feeffe1997

View File

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