From fa253c198977e528d75b9b4658d4e7edafc6a95a Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Fri, 14 Feb 2003 18:41:41 +0000 Subject: [PATCH] - Fix bug in last change. --- Packages/Stream_support/changes.txt | 3 +++ .../test/Stream_support/test_support.C | 18 ++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Packages/Stream_support/changes.txt b/Packages/Stream_support/changes.txt index 7f5c1256494..332a49baaf8 100644 --- a/Packages/Stream_support/changes.txt +++ b/Packages/Stream_support/changes.txt @@ -1,6 +1,9 @@ Stream_support Package: Release changes: --------------------------------------------------------------------- +2.20 (14 Feb 2003) +- Fix bug in last change. + 2.19 (12 Feb 2003) - workaround Borland bug in test program. diff --git a/Packages/Stream_support/test/Stream_support/test_support.C b/Packages/Stream_support/test/Stream_support/test_support.C index 19e4ab3e960..773f2931fc0 100644 --- a/Packages/Stream_support/test/Stream_support/test_support.C +++ b/Packages/Stream_support/test/Stream_support/test_support.C @@ -28,24 +28,22 @@ #include #include -using namespace CGAL; - typedef CGAL::Cartesian Rep; typedef Rep::Point_2 Point; int main() { - typedef Ostream_iterator IteratorO; - typedef Istream_iterator IteratorI; + typedef CGAL::Ostream_iterator IteratorO; + typedef CGAL::Istream_iterator IteratorI; { char buffer[1000]; std::ostrstream out( buffer, 1000); - set_ascii_mode( out); - CGAL_assertion( is_ascii( out)); + CGAL::set_ascii_mode( out); + CGAL_assertion( CGAL::is_ascii( out)); out << Point( 1, 2) << '\0'; std::istrstream in( buffer, 1000); - set_ascii_mode(in); - CGAL_assertion( is_ascii(in)); + CGAL::set_ascii_mode(in); + CGAL_assertion( CGAL::is_ascii(in)); Point p; in >> p; CGAL_assertion( p == Point( 1, 2)); @@ -53,12 +51,12 @@ int main() { char buffer[1000]; std::ostrstream out( buffer, 1000); - set_ascii_mode( out); + CGAL::set_ascii_mode( out); IteratorO o(out); *o = Point( 1, 2); out << '\0'; std::istrstream in( buffer, 1000); - set_ascii_mode( in); + CGAL::set_ascii_mode( in); IteratorI i(in); Point p = *i; CGAL_assertion( p == Point( 1, 2));