From 2a78b4da8c1f80d1845ed23ec9abeffa546f38fa Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Sat, 13 Feb 2016 22:11:12 +0800 Subject: [PATCH] Fix Value.String test compilation error --- test/unittest/valuetest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unittest/valuetest.cpp b/test/unittest/valuetest.cpp index 9af1e1c..a8b6c57 100644 --- a/test/unittest/valuetest.cpp +++ b/test/unittest/valuetest.cpp @@ -812,8 +812,10 @@ TEST(Value, String) { // Templated function. EXPECT_TRUE(vs0.Is()); EXPECT_EQ(str, vs0.Get()); - EXPECT_EQ(std::string("Apple"), vs0.Set(std::string("Apple"), allocator).template Get()); - EXPECT_EQ(std::string("Orange"), vs0.Set(std::string("Orange"), allocator).template Get()); + vs0.Set(std::string("Apple"), allocator); + EXPECT_EQ(std::string("Apple"), vs0.Get()); + vs0.Set(std::string("Orange"), allocator); + EXPECT_EQ(std::string("Orange"), vs0.Get()); } #endif // RAPIDJSON_HAS_STDSTRING }