-
Notifications
You must be signed in to change notification settings - Fork 720
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
Convert 0 to nullptr #91
Comments
Why do you need to compile pugixml with Wzero-as-null-pointer-constant? |
I don't need to, it's just that I usually have that option turned on. It's really just a matter if you want to have the code base be fully C++11 compliant. If not, disregard this issue. |
As far as I know, being fully C++11 compliant does not require using nullptr instead of 0. The gcc warning is more like a "style" warning, similar to some other warnings that aren't unambiguously good... There are two small practical issues with using nullptr in pugixml:
|
You're correct, it's just stylistic and doesn't add anything. I'll close this issue. Thanks. |
Use nullptr in pugixml.hpp if available, see #91
If you compile pugixml with this option enabled in gcc: -Wzero-as-null-pointer-constant
There are a ton of warnings. You should probably move to C++11 style and use nullptr instead of 0 for pointers.
Thanks.
The text was updated successfully, but these errors were encountered: