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.
This commit is contained in:
Philipp A. Hartmann 2014-07-10 19:41:08 +02:00
parent 3cdfb0dafe
commit 4f40ed64b6

View File

@ -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.