We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4018422 + ba6fa48 commit 8bd4f94Copy full SHA for 8bd4f94
include/json/config.h
@@ -77,12 +77,14 @@
77
78
#endif // defined(_MSC_VER)
79
80
-#if defined(_MSC_VER) && _MSC_VER <= 1600 // MSVC <= 2010
81
-# define JSONCPP_OVERRIDE
82
-#else
+// 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.
83
+#if __cplusplus >= 201103L
84
# define JSONCPP_OVERRIDE override
-#endif // MSVC <= 2010
85
-
+#else
86
+# define JSONCPP_OVERRIDE
87
+#endif
88
89
#ifndef JSON_HAS_RVALUE_REFERENCES
90
0 commit comments