Skip to content

Commit 54a5432

Browse files
committed
Drop compile-time deprecation warning
1 parent b22302e commit 54a5432

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Diff for: include/json/reader.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ namespace Json {
3333
* \deprecated Use CharReader and CharReaderBuilder.
3434
*/
3535

36-
class JSONCPP_DEPRECATED(
37-
"Use CharReader and CharReaderBuilder instead.") JSON_API Reader {
36+
class JSON_API Reader {
3837
public:
3938
using Char = char;
4039
using Location = const Char*;
@@ -51,13 +50,13 @@ class JSONCPP_DEPRECATED(
5150
};
5251

5352
/** \brief Constructs a Reader allowing all features for parsing.
53+
* \deprecated Use CharReader and CharReaderBuilder.
5454
*/
55-
JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
5655
Reader();
5756

5857
/** \brief Constructs a Reader allowing the specified feature set for parsing.
58+
* \deprecated Use CharReader and CharReaderBuilder.
5959
*/
60-
JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead")
6160
Reader(const Features& features);
6261

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

Diff for: include/json/writer.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class JSON_API StreamWriterBuilder : public StreamWriter::Factory {
147147
/** \brief Abstract class for writers.
148148
* \deprecated Use StreamWriter. (And really, this is an implementation detail.)
149149
*/
150-
class JSONCPP_DEPRECATED("Use StreamWriter instead") JSON_API Writer {
150+
class JSON_API Writer {
151151
public:
152152
virtual ~Writer();
153153

@@ -167,7 +167,7 @@ class JSONCPP_DEPRECATED("Use StreamWriter instead") JSON_API Writer {
167167
#pragma warning(push)
168168
#pragma warning(disable : 4996) // Deriving from deprecated class
169169
#endif
170-
class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter
170+
class JSON_API FastWriter
171171
: public Writer {
172172
public:
173173
FastWriter();
@@ -227,7 +227,7 @@ class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter
227227
#pragma warning(push)
228228
#pragma warning(disable : 4996) // Deriving from deprecated class
229229
#endif
230-
class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API
230+
class JSON_API
231231
StyledWriter : public Writer {
232232
public:
233233
StyledWriter();
@@ -296,7 +296,7 @@ class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API
296296
#pragma warning(push)
297297
#pragma warning(disable : 4996) // Deriving from deprecated class
298298
#endif
299-
class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API
299+
class JSON_API
300300
StyledStreamWriter {
301301
public:
302302
/**

0 commit comments

Comments
 (0)