Commit 4f40ed64 authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

MSVC: fix compiler error in GenericDocument

The `StringRefType` assignment operator overload
leads to a compiler error on MSVC 2005 and later:

..\..\include\rapidjson/document.h(504) : error C2951: template declarations are only permitted at global, namespace, or class scope

Drop the unneeded 'template' keyword here.
parent 3cdfb0da
...@@ -501,7 +501,7 @@ public: ...@@ -501,7 +501,7 @@ public:
\see GenericStringRef, operator=(T) \see GenericStringRef, operator=(T)
*/ */
GenericValue& operator=(StringRefType str) { GenericValue& operator=(StringRefType str) {
return (*this).template operator=<StringRefType>(str); return (*this).operator=<StringRefType>(str);
} }
//! Assignment with primitive types. //! Assignment with primitive types.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment