[cfe-dev] __has_feature(cxx_nullptr)

Douglas Gregor dgregor at apple.com
Wed Mar 9 08:22:37 PST 2011


On Mar 9, 2011, at 6:07 AM, Howard Hinnant wrote:

> Should __has_feature(cxx_nullptr) answer true when -std=c++0x?
> 
> typedef decltype(nullptr) nullptr_t;
> 
> Works.  But I haven't tested it out further.


We don't know. nullptr is implemented in Clang, but we have fairly limited testing of this feature and so we don't know if the implementation is solid enough for us to advertise it as being complete.

If someone wants to write a bunch of tests for nullptr to verify that it's working well, we can turn on __has_feature(cxx_nullptr).

	- Doug



More information about the cfe-dev mailing list