|
Message-ID: <871ryycs9n.fsf@oldenburg2.str.redhat.com> Date: Wed, 10 Jul 2019 08:34:12 +0200 From: Florian Weimer <fweimer@...hat.com> To: musl@...ts.openwall.com Subject: Re: [PATCH] Define NULL as __null in C++ mode when using GCC or Clang. * Szabolcs Nagy: > it is clear that 0L is a conforming definition for all > conforming c++ compilers. > > it is less clear if __null is so in all compilers that > define __GNUC__. Why wouldn't something like this be valid for current C++ versions? static inline constexpr decltype(nullptr) __null{}; #define NULL __null I don't see a requirement that NULL must be an expression that can be evaluated by the preprocessor. Thanks, Florian
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.