search for: gnunullexpr

Displaying 2 results from an estimated 2 matches for "gnunullexpr".

2011 Aug 18
1
[LLVMdev] [cfe-dev] Style question: NULL or 0?
On Wed, Aug 17, 2011 at 4:41 PM, Jordy Rose <jediknil at belkadan.com> wrote: > But I think I read somewhere that 0 is more C++esque. I believe Stroustrup espoused this at one point (perhaps even on his website) on the basis that using NULL gives you a false sense of security - which isn't entirely true now that compilers (GCC & clang presumably) will warn you about using NULL
2011 Aug 18
0
[LLVMdev] [cfe-dev] Style question: NULL or 0?
> using NULL gives you a false sense of security - which isn't entirely > true now that compilers (GCC & clang > presumably) will warn you about using NULL in non-pointer contexts. Hmm, nope, can't seem to find that warning in clang - gcc gives it though: foo.cpp:4:11: warning: converting to non-pointer type "int" from NULL