set the failbit

This commit is contained in:
Andreas Fabri 2016-10-18 12:32:54 +02:00
parent f4c2099e67
commit 664fb7dd5f
1 changed files with 2 additions and 0 deletions

View File

@ -330,6 +330,8 @@ operator>>(std::istream &is,
Point_2 p1, p2;
is >> p1 >> p2;
t = Site_2::construct_site_2(p1, p2);
} else {
is.setstate(std::ios::failbit);
}
}
return is;