mirror of https://github.com/CGAL/cgal
set the failbit
This commit is contained in:
parent
f4c2099e67
commit
664fb7dd5f
|
|
@ -330,6 +330,8 @@ operator>>(std::istream &is,
|
||||||
Point_2 p1, p2;
|
Point_2 p1, p2;
|
||||||
is >> p1 >> p2;
|
is >> p1 >> p2;
|
||||||
t = Site_2::construct_site_2(p1, p2);
|
t = Site_2::construct_site_2(p1, p2);
|
||||||
|
} else {
|
||||||
|
is.setstate(std::ios::failbit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return is;
|
return is;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue