mirror of https://github.com/CGAL/cgal
- Fix Gmpq's operator>> in case of end of stream.
This commit is contained in:
parent
c9c7b43765
commit
ab359bc415
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue