Commit 44de7726f81c7492b42e8a134eccbe878ed9d6fb

Authored by Nagy Zsolt
1 parent 2144fbcc

Fix remaining character check

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