diff --git a/Triangulation_2/include/CGAL/Weighted_point.h b/Triangulation_2/include/CGAL/Weighted_point.h index e7ae87149be..4aed838327e 100644 --- a/Triangulation_2/include/CGAL/Weighted_point.h +++ b/Triangulation_2/include/CGAL/Weighted_point.h @@ -129,6 +129,7 @@ operator>>(std::istream &is, Weighted_point &wp) Weight w; Point p; is >> p; + if(!is) return is; if(is_ascii(is)) is >> w; else