Merge pull request #1591 from afabri/SDG-set_failbit-GF

SDG_2: Set the failbit if the operator>> for Site fails.
This commit is contained in:
Laurent Rineau 2016-10-20 09:47:58 +02:00
commit 9658e6e1f9
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;