Why clang bundled with 10-RELEASE doesn't define __has_feature(cxx_nullptr)?
Dimitry Andric
dim at FreeBSD.org
Fri Feb 7 15:47:51 UTC 2014
On 07 Feb 2014, at 14:49, Lev Serebryakov <lev at freebsd.org> wrote:
> Hello, freebsd-stable.
>
> Why __has_feature(cxx_nulptr) doesn't work on system compiler? nullptr
> itself works!
...
>> c++ test.cxx
> test.cxx:11:2: warning: "Doesn't have nullptr" [-W#warnings]
> #warning "Doesn't have nullptr"
Hi Lev,
You need to specify at least -std=c++0x for nullptr to be 'officially' available.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140207/f4cec28f/attachment.sig>
More information about the freebsd-stable
mailing list