diff --git a/STL_Extension/include/CGAL/Exception_ostream.h b/STL_Extension/include/CGAL/Exception_ostream.h index 9ac492a1263..16a36e445b6 100644 --- a/STL_Extension/include/CGAL/Exception_ostream.h +++ b/STL_Extension/include/CGAL/Exception_ostream.h @@ -13,6 +13,7 @@ #define CGAL_EXCEPTION_OSTREAM_H #include +#include #include #include #include @@ -42,7 +43,9 @@ template > class Exception_basic_ostream { std::basic_ostringstream stream_; public: - Exception_basic_ostream() = default; + Exception_basic_ostream() : stream_() { + stream_.precision(std::cerr.precision()); + } // move-only Exception_basic_ostream(Exception_basic_ostream&&) = default;