Commit feeffe1997e600151bb2b11b38402431267273aa

Authored by jarro2783
2 parents 2144fbcc 44de7726

Merge pull request #11 from nzsolt222/fix

Fix remaining character check
Showing 1 changed file with 1 additions and 1 deletions
src/cxxopts.hpp
... ... @@ -387,7 +387,7 @@ namespace cxxopts
387 387 throw argument_incorrect_type(text);
388 388 }
389 389  
390   - if (!is.eof())
  390 + if (is.rdbuf()->in_avail() != 0)
391 391 {
392 392 throw argument_incorrect_type(text);
393 393 }
... ...