forked from lthn/blockchain
keep stream flags intact in dump_as_json()
This commit is contained in:
parent
7cf98ccb75
commit
43e8fbefbd
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue