Do not deprecate whole class but only constructors of Json::Reader.
This should fix warning C4996 issued by Visual Studio in cases where
Json::Reader is not even used by client code.
diff --git a/include/json/reader.h b/include/json/reader.h
index 82859fd..dc1da1f 100644
--- a/include/json/reader.h
+++ b/include/json/reader.h
@@ -32,7 +32,7 @@
*
* \deprecated Use CharReader and CharReaderBuilder.
*/
-class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_API Reader {
+class JSON_API Reader {
public:
typedef char Char;
typedef const Char* Location;
@@ -52,11 +52,13 @@
/** \brief Constructs a Reader allowing all features
* for parsing.
*/
+ JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
Reader();
/** \brief Constructs a Reader allowing the specified feature set
* for parsing.
*/
+ JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
Reader(const Features& features);
/** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a>