From 9d442f26c783a6e3416c3b5b2d56b0ec28ffe3d4 Mon Sep 17 00:00:00 2001 From: Giles Bathgate Date: Sat, 28 Nov 2020 17:48:05 +0000 Subject: [PATCH] Fix uncaught exception in VRML_2_ostream.h --- Stream_support/include/CGAL/IO/VRML/VRML_2_ostream.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Stream_support/include/CGAL/IO/VRML/VRML_2_ostream.h b/Stream_support/include/CGAL/IO/VRML/VRML_2_ostream.h index 08e8fdd7e49..d200643068d 100644 --- a/Stream_support/include/CGAL/IO/VRML/VRML_2_ostream.h +++ b/Stream_support/include/CGAL/IO/VRML/VRML_2_ostream.h @@ -30,7 +30,12 @@ class VRML_2_ostream public: VRML_2_ostream() : m_os(nullptr) {} VRML_2_ostream(std::ostream& o) : m_os(&o) { header(); } - ~VRML_2_ostream() { close(); } + ~VRML_2_ostream() CGAL_NOEXCEPT(CGAL_NO_ASSERTIONS_BOOL) + { + CGAL_destructor_assertion_catch( + close(); + ); + } void open(std::ostream& o) { m_os = &o; header(); } void close()