This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++0x] nullptr


On 05/03/2010 01:05 AM, Ed Smith-Rowland wrote:
In gcc we
#define NULL __null.
OTOH the committee thought about and ultimately rejected
#define NULL nullptr

Can/should we go ahead and do this since we sort of did it already?

No. NULL is defined to be an integer, which __null is and nullptr is not; making that change would break code. Such code probably ought to be broken, but it still isn't something I want to do just in G++.


If we don't want to do this would it be a good idea to have a flag
-fNULL=nullptr o somesuch?

NULL is defined by headers, not in the compiler. Try -DNULL=nullptr if that's what you want?


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]