Skip to content

Commit

Permalink
Make internal func anon
Browse files Browse the repository at this point in the history
fixes #489
  • Loading branch information
cdunn2001 committed Jun 26, 2016
1 parent 43203f1 commit e0f9aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/json/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
// 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
// managable and fixes a set of common hard-to-find bugs.
#if __cplusplus >= 201103L
#if __cplusplus >= 201103L
# define JSONCPP_OVERRIDE override
#elif defined(_MSC_VER) && _MSC_VER > 1600
# define JSONCPP_OVERRIDE override
Expand Down
2 changes: 2 additions & 0 deletions src/lib_json/json_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ JSONCPP_STRING valueToString(UInt value) {

#endif // # if defined(JSON_HAS_INT64)

namespace {
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
// precision requested below.
Expand Down Expand Up @@ -164,6 +165,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
fixNumericLocale(buffer, buffer + len);
return buffer;
}
}

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

Expand Down

0 comments on commit e0f9aab

Please sign in to comment.