- Fix Gmpq's operator>> in case of end of stream.

This commit is contained in:
Sylvain Pion 2003-10-27 13:24:18 +00:00
parent c9c7b43765
commit ab359bc415
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,6 @@
4.121 (27 October 2003)
- Fix Gmpq's operator>> in case of end of stream.
4.120 (22 October 2003) [af]
- new headers

View File

@ -466,10 +466,11 @@ operator>>(std::istream& is, Gmpq &z)
Gmpz n, d;
is >> n;
is >> c;
CGAL_assertion(c == '/');
CGAL_assertion(!is || c == '/');
is >> d;
z = Gmpq(n,d);
if (is)
z = Gmpq(n,d);
return is;
}