Will C++11 implementations define NULLas nullptr?
Would this be prescribed by the new C++ standard?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the horse’s mouth
It is up to each implementation to provide its own definition, gcc if I recall correctly defines it to
__nullptrfor which it has special checks (verifies that it is not used in arithmetic contexts for example).So it is possible to define it as
nullptr, you will have to check your compiler/Standard Library documentation to see what has been done.