Can we update our style to use nullptr now?
It's not clear to me if we're using a new enough MSVC or not?
---------- Forwarded message ----------
From: Benjamin Poulain <
benj...@webkit.org>
Date: Fri, Apr 12, 2013 at 3:41 PM
Subject: Re: [webkit-dev] on coding-style
To: Karen Shaeffer <
shae...@neuralscape.com>
Cc: WebKit Development <
webki...@lists.webkit.org>
On Fri, Apr 12, 2013 at 3:33 PM, Karen Shaeffer
<
shae...@neuralscape.com> wrote:
>
> Was reading the coding-style documentation. Have just one question concerning
> C++ null pointer value. Quoting the coding-style docs, "In C++, the null pointer
> value should be written as 0."
>
> My question is: Doesn't xcode clang now support features like nullptr? Shouldn't
> the coding-style documentation be updated to use nullptr?
The problem is the variety of compilers used by the various ports
(WebKit is also used on Windows, Linux, Solaris, etc.), not all of
them supports nullptr.
You can already use nullptr with some types (RefPtr, OwnPtr, etc).
That is thanks to a hack in Source/WTF/wtf/NullPtr.h
Cheers,
Benjamin
_______________________________________________
webkit-dev mailing list
webki...@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev