From a907ca490e4de3a1b293234dfd49cbea3906433d Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Sun, 21 Feb 2016 14:14:49 +0800 Subject: [PATCH] Fix another VC2010 compilation error --- test/unittest/documenttest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unittest/documenttest.cpp b/test/unittest/documenttest.cpp index e6e312f..38a0448 100644 --- a/test/unittest/documenttest.cpp +++ b/test/unittest/documenttest.cpp @@ -192,7 +192,12 @@ TEST(Document, Parse_Encoding) { #if RAPIDJSON_HAS_STDSTRING // Parse(std::string) doc.SetNull(); + +#if defined(_MSC_VER) && _MSC_VER < 1800 + doc.Parse >(s2.c_str()); // VS2010 or below cannot handle templated function overloading. Use const char* instead. +#else doc.Parse >(s2); +#endif EXPECT_FALSE(doc.HasParseError()); EXPECT_EQ(0, StrCmp(doc[L"hello"].GetString(), L"world")); #endif