mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-30 17:33:27 +02:00
parent
43203f1d09
commit
e0f9aab0bf
@ -80,7 +80,7 @@
|
|||||||
// In c++11 the override keyword allows you to explicity define that a function
|
// In c++11 the override keyword allows you to explicity define that a function
|
||||||
// is intended to override the base-class version. This makes the code more
|
// is intended to override the base-class version. This makes the code more
|
||||||
// managable and fixes a set of common hard-to-find bugs.
|
// managable and fixes a set of common hard-to-find bugs.
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
# define JSONCPP_OVERRIDE override
|
# define JSONCPP_OVERRIDE override
|
||||||
#elif defined(_MSC_VER) && _MSC_VER > 1600
|
#elif defined(_MSC_VER) && _MSC_VER > 1600
|
||||||
# define JSONCPP_OVERRIDE override
|
# define JSONCPP_OVERRIDE override
|
||||||
|
@ -135,6 +135,7 @@ JSONCPP_STRING valueToString(UInt value) {
|
|||||||
|
|
||||||
#endif // # if defined(JSON_HAS_INT64)
|
#endif // # if defined(JSON_HAS_INT64)
|
||||||
|
|
||||||
|
namespace {
|
||||||
JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int precision) {
|
JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int precision) {
|
||||||
// Allocate a buffer that is more than large enough to store the 16 digits of
|
// Allocate a buffer that is more than large enough to store the 16 digits of
|
||||||
// precision requested below.
|
// precision requested below.
|
||||||
@ -164,6 +165,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
|
|||||||
fixNumericLocale(buffer, buffer + len);
|
fixNumericLocale(buffer, buffer + len);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
JSONCPP_STRING valueToString(double value) { return valueToString(value, false, 17); }
|
JSONCPP_STRING valueToString(double value) { return valueToString(value, false, 17); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user