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 }