summaryrefslogtreecommitdiff
path: root/src/raw_convert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw_convert.h')
-rw-r--r--src/raw_convert.h4
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;