Skip to content

Commit e0f9aab

Browse files
committed
Make internal func anon
fixes #489
1 parent 43203f1 commit e0f9aab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/json/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
// In c++11 the override keyword allows you to explicity define that a function
8181
// is intended to override the base-class version. This makes the code more
8282
// managable and fixes a set of common hard-to-find bugs.
83-
#if __cplusplus >= 201103L
83+
#if __cplusplus >= 201103L
8484
# define JSONCPP_OVERRIDE override
8585
#elif defined(_MSC_VER) && _MSC_VER > 1600
8686
# define JSONCPP_OVERRIDE override

src/lib_json/json_writer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ JSONCPP_STRING valueToString(UInt value) {
135135

136136
#endif // # if defined(JSON_HAS_INT64)
137137

138+
namespace {
138139
JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int precision) {
139140
// Allocate a buffer that is more than large enough to store the 16 digits of
140141
// precision requested below.
@@ -164,6 +165,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
164165
fixNumericLocale(buffer, buffer + len);
165166
return buffer;
166167
}
168+
}
167169

168170
JSONCPP_STRING valueToString(double value) { return valueToString(value, false, 17); }
169171

0 commit comments

Comments
 (0)