mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-04 19:13:40 +01:00
Fix compilation of sortkeys.cpp with MSVC 2013 (hopefully).
This commit is contained in:
parent
01950eb7ac
commit
b4538b5363
@ -45,9 +45,8 @@ int main() {
|
||||
// C++11 supports std::move() of Value so it always have no problem for std::sort().
|
||||
// Some C++03 implementations of std::sort() requires copy constructor which causes compilation error.
|
||||
// Needs a sorting function only depends on std::swap() instead.
|
||||
#if __cplusplus >= 201103L || !defined(__GLIBCXX__)
|
||||
#if __cplusplus >= 201103L || (!defined(__GLIBCXX__) && (!defined(_MSC_VER) || _MSC_VER >= 1900))
|
||||
std::sort(d.MemberBegin(), d.MemberEnd(), NameComparator());
|
||||
#endif
|
||||
|
||||
printIt(d);
|
||||
|
||||
@ -59,4 +58,5 @@ int main() {
|
||||
"zeta": false
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user