From f8db47377916f66bfb899c56f71f9de275a5ab51 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Sat, 30 Aug 2014 18:51:43 +0200 Subject: [PATCH] GenericValue: add explicit operator!=(const Ch*) MSVC'2005 needs an explicit overload for operator!=(const Ch*) after the addition of the IsGenericValue SFINAE restrictions. --- include/rapidjson/document.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index e206d84..1eb506c 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -711,6 +711,9 @@ public: template bool operator!=(const GenericValue& rhs) const { return !(*this == rhs); } + //! Not-equal-to operator with const C-string pointer + bool operator!=(const Ch* rhs) const { return !(*this == rhs); } + //! Not-equal-to operator with arbitrary types /*! \return !(*this == rhs) */