1
0
Fork 0
forked from lthn/blockchain

keep stream flags intact in dump_as_json()

This commit is contained in:
sowle 2020-02-18 17:04:14 +03:00
parent 7cf98ccb75
commit 43e8fbefbd
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -157,6 +157,7 @@ namespace epee
template<class t_stream>
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;
}