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.
1 parent 01950eb commit b4538b5Copy full SHA for b4538b5
example/sortkeys/sortkeys.cpp
@@ -45,9 +45,8 @@ int main() {
45
// C++11 supports std::move() of Value so it always have no problem for std::sort().
46
// Some C++03 implementations of std::sort() requires copy constructor which causes compilation error.
47
// Needs a sorting function only depends on std::swap() instead.
48
-#if __cplusplus >= 201103L || !defined(__GLIBCXX__)
+#if __cplusplus >= 201103L || (!defined(__GLIBCXX__) && (!defined(_MSC_VER) || _MSC_VER >= 1900))
49
std::sort(d.MemberBegin(), d.MemberEnd(), NameComparator());
50
-#endif
51
52
printIt(d);
53
@@ -59,4 +58,5 @@ int main() {
59
58
"zeta": false
60
}
61
*/
+#endif
62
0 commit comments