mirror of https://github.com/CGAL/cgal
Fix uncaught exception in VRML_2_ostream.h
This commit is contained in:
parent
96024d1bb1
commit
9d442f26c7
|
|
@ -30,7 +30,12 @@ class VRML_2_ostream
|
||||||
public:
|
public:
|
||||||
VRML_2_ostream() : m_os(nullptr) {}
|
VRML_2_ostream() : m_os(nullptr) {}
|
||||||
VRML_2_ostream(std::ostream& o) : m_os(&o) { header(); }
|
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 open(std::ostream& o) { m_os = &o; header(); }
|
||||||
void close()
|
void close()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue