set input state to std::ios::failbit (only needed on linux ?)

This commit is contained in:
artemp 2015-08-27 13:31:54 +02:00
parent 8f37b30978
commit 284ca099ea

View file

@ -242,6 +242,7 @@ void csv_datasource::parse_csv(T & stream,
bool is_first_row = false;
if (!has_newline)
{
stream.setstate(std::ios::failbit);
pos = 0;
if (!csv_line.empty())
{