open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

Vs2013fix #1535

Open FabianHoffmann opened 4 months ago

FabianHoffmann commented 4 months ago

The C++0x part of branch 00.11.z can be build with GNU Compiler but not with Windows VS2013. In-class initializer for static data member of type 'const double' is a GNU extension which is not provided by Visual Studio. Initialization is done outside the class definition to make this project compileable with VS2013. A small fix was also done in the CONTRIBUTING.md to make code snippets capable for copy-paste usage.