diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:26:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:26:54 +0100 |
| commit | e245921978ee9c7c6e025c7416bdf808d789fa44 (patch) | |
| tree | 17a6c18cc1d0294f7e87d7c6638d4cc23f81b7e5 /src/raw_convert.h | |
| parent | d7e0ebee4d94f10a8b80c1e61bf7b162c6a1ac12 (diff) | |
Use locked_sstream.
Diffstat (limited to 'src/raw_convert.h')
| -rw-r--r-- | src/raw_convert.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raw_convert.h b/src/raw_convert.h index 6b9b68f..3afb8f7 100644 --- a/src/raw_convert.h +++ b/src/raw_convert.h @@ -20,7 +20,7 @@ #ifndef LIBSUB_RAW_CONVERT_H #define LIBSUB_RAW_CONVERT_H -#include <sstream> +#include <locked_sstream.h> #include <iomanip> namespace sub { @@ -32,7 +32,7 @@ template <typename P, typename Q> P raw_convert (Q v, int precision = 16) { - std::stringstream s; + locked_stringstream s; s.imbue (std::locale::classic ()); s << std::setprecision (precision); s << v; |
