set input state to std::ios::failbit
(only needed on linux ?)
This commit is contained in:
parent
8f37b30978
commit
284ca099ea
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue