-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Update writer.h #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update writer.h #669
Conversation
fix typos
Thanks for picking this up @cdunn2001 ! |
From SO comment:
Ok. I'll try that. But first I'm looking into new TravisCI build failures that have nothing to do with this PR... |
e595a4d
to
132840a
Compare
@@ -270,6 +275,8 @@ class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API StyledWrite | |||
* \sa Reader, Value, Value::setComment() | |||
* \deprecated Use StreamWriterBuilder. | |||
*/ | |||
#pragma warning(push) | |||
#pragma warning(disable:4996) // Deriving from deprecated class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually think that disabling the deprecation warnings on this class is necessary. They were added to StyledWriter
and FastWriter
since both those classes derived from Writer
which is deprecated (and thus considered by VS to be using Writer
). StyledStreamWriter
is itself deprecated (same as Writer
) and doesn't use a deprecated class.
I know I referred to the stackoverflow comment but I didn't examine the class it referred to. Now I think it's in error. (Although I don't think it's harmful either, I can't really tell since I'm not at my dev machine).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I'll remove the push/pop for StyledStreamWriter. Thanks for following up.
Replace #668, which was not properly rebased.