Fix uncaught exception in VRML_2_ostream.h

This commit is contained in:
Giles Bathgate 2020-11-28 17:48:05 +00:00
parent 96024d1bb1
commit 9d442f26c7
1 changed files with 6 additions and 1 deletions

View File

@ -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()