mirror of https://github.com/CGAL/cgal
fix precision
This commit is contained in:
parent
25e41104d1
commit
ff9223ab21
|
|
@ -13,6 +13,7 @@
|
||||||
#define CGAL_EXCEPTION_OSTREAM_H
|
#define CGAL_EXCEPTION_OSTREAM_H
|
||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
|
#include <iostream>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
@ -42,7 +43,9 @@ template <typename CharT = char, typename Traits = std::char_traits<CharT>>
|
||||||
class Exception_basic_ostream {
|
class Exception_basic_ostream {
|
||||||
std::basic_ostringstream<CharT, Traits> stream_;
|
std::basic_ostringstream<CharT, Traits> stream_;
|
||||||
public:
|
public:
|
||||||
Exception_basic_ostream() = default;
|
Exception_basic_ostream() : stream_() {
|
||||||
|
stream_.precision(std::cerr.precision());
|
||||||
|
}
|
||||||
|
|
||||||
// move-only
|
// move-only
|
||||||
Exception_basic_ostream(Exception_basic_ostream&&) = default;
|
Exception_basic_ostream(Exception_basic_ostream&&) = default;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue