Skip to content

Commit edb4bdb

Browse files
Christof Krügercdunn2001
Christof Krüger
authored andcommitted
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.
1 parent 0ced843 commit edb4bdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/json/reader.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Json {
3232
*
3333
* \deprecated Use CharReader and CharReaderBuilder.
3434
*/
35-
class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_API Reader {
35+
class JSON_API Reader {
3636
public:
3737
typedef char Char;
3838
typedef const Char* Location;
@@ -52,11 +52,13 @@ class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_AP
5252
/** \brief Constructs a Reader allowing all features
5353
* for parsing.
5454
*/
55+
JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
5556
Reader();
5657

5758
/** \brief Constructs a Reader allowing the specified feature set
5859
* for parsing.
5960
*/
61+
JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
6062
Reader(const Features& features);
6163

6264
/** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a>

0 commit comments

Comments
 (0)