From 43e8fbefbd4e45cef8cd4d65e457b6ec6670feb8 Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 18 Feb 2020 17:04:14 +0300 Subject: [PATCH] keep stream flags intact in dump_as_json() --- contrib/epee/include/storages/portable_storage_to_json.h | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/epee/include/storages/portable_storage_to_json.h b/contrib/epee/include/storages/portable_storage_to_json.h index 9cfd9c0a..1e2d5d97 100644 --- a/contrib/epee/include/storages/portable_storage_to_json.h +++ b/contrib/epee/include/storages/portable_storage_to_json.h @@ -157,6 +157,7 @@ namespace epee template void dump_as_json(t_stream& strm, const double& v, size_t indent, end_of_line_t eol) { + boost::io::ios_flags_saver ifs(strm); strm.precision(8); strm << std::fixed << v; }