Merge branch 'develop' into feature/iterator_range_parsing

This commit is contained in:
Niels 2016-08-30 18:20:13 +02:00
commit f76f9efe58
4 changed files with 8 additions and 4 deletions

View file

@ -2212,7 +2212,8 @@ class basic_json
{
std::stringstream ss;
// fix locale problems
ss.imbue(std::locale(std::locale(), new DecimalSeparator));
const static std::locale loc(std::locale(), new DecimalSeparator);
ss.imbue(loc);
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long

View file

@ -2212,7 +2212,8 @@ class basic_json
{
std::stringstream ss;
// fix locale problems
ss.imbue(std::locale(std::locale(), new DecimalSeparator));
const static std::locale loc(std::locale(), new DecimalSeparator);
ss.imbue(loc);
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long