mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-08 06:45:54 +01:00
Merge pull request #478 from quantumsteve/msvc_override
Use override keyword with Visual Studio.
This commit is contained in:
commit
43203f1d09
@ -80,7 +80,9 @@
|
|||||||
// 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
|
||||||
|
#elif defined(_MSC_VER) && _MSC_VER > 1600
|
||||||
# define JSONCPP_OVERRIDE override
|
# define JSONCPP_OVERRIDE override
|
||||||
#else
|
#else
|
||||||
# define JSONCPP_OVERRIDE
|
# define JSONCPP_OVERRIDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user