Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Issue 322913002: add a user-provided constructor to emulated c++11 NullPtr (Closed)

Created:
6 years, 6 months ago by Mostyn Bramley-Moore
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, Mikhail, abarth-chromium, Benjamin Dupont
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

add a user-provided constructor to emulated c++11 NullPtr According to this GCC bug/patch, a user-specified constructor is required for the emulated C++11 nullptr_t class if we want to be able to create const nullptr_t objects without an explicit initializer, a la: "const std::nullptr_t nullptr;" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42844 This fixes a build failure in GCC 4.5. BUG=374431 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175874

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment nit fixup #

Patch Set 3 : another attempt at a readable comment #

Total comments: 2

Patch Set 4 : mention GCC 4.5 explicitly in code comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M Source/wtf/NullPtr.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mostyn Bramley-Moore
@Sigbjørn, Mads: PTAL at this small fixup. @Benjamin: can you see if this works for ...
6 years, 6 months ago (2014-06-09 22:23:29 UTC) #1
Peter Kasting
Drive-by https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h File Source/wtf/NullPtr.h (right): https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h#newcode52 Source/wtf/NullPtr.h:52: // Required to create uninitialized const nullptr's. Nit: ...
6 years, 6 months ago (2014-06-09 23:07:00 UTC) #2
Mostyn Bramley-Moore
https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h File Source/wtf/NullPtr.h (right): https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h#newcode52 Source/wtf/NullPtr.h:52: // Required to create uninitialized const nullptr's. On 2014/06/09 ...
6 years, 6 months ago (2014-06-09 23:33:30 UTC) #3
Peter Kasting
On 2014/06/09 23:33:30, Mostyn Bramley-Moore wrote: > https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h > File Source/wtf/NullPtr.h (right): > > https://codereview.chromium.org/322913002/diff/1/Source/wtf/NullPtr.h#newcode52 ...
6 years, 6 months ago (2014-06-09 23:36:56 UTC) #4
Mostyn Bramley-Moore
On 2014/06/09 23:36:56, Peter Kasting wrote: > > Rephrased to avoid the apostrophe, hopefully it's ...
6 years, 6 months ago (2014-06-09 23:48:51 UTC) #5
Mads Ager (chromium)
LGTM, but you will need an OWNER to sign off on the change. Added Erik ...
6 years, 6 months ago (2014-06-10 06:08:39 UTC) #6
Mikhail
https://codereview.chromium.org/322913002/diff/40001/Source/wtf/NullPtr.h File Source/wtf/NullPtr.h (right): https://codereview.chromium.org/322913002/diff/40001/Source/wtf/NullPtr.h#newcode53 Source/wtf/NullPtr.h:53: // explicit initializer, a la: As I see at ...
6 years, 6 months ago (2014-06-10 07:15:24 UTC) #7
Mostyn Bramley-Moore
https://codereview.chromium.org/322913002/diff/40001/Source/wtf/NullPtr.h File Source/wtf/NullPtr.h (right): https://codereview.chromium.org/322913002/diff/40001/Source/wtf/NullPtr.h#newcode53 Source/wtf/NullPtr.h:53: // explicit initializer, a la: On 2014/06/10 07:15:24, mikhail.pozdnyakov ...
6 years, 6 months ago (2014-06-10 07:33:58 UTC) #8
Mikhail
lgtm
6 years, 6 months ago (2014-06-10 07:49:16 UTC) #9
Mostyn Bramley-Moore
The CQ bit was checked by mostynb@opera.com
6 years, 6 months ago (2014-06-10 07:50:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/322913002/60001
6 years, 6 months ago (2014-06-10 07:50:38 UTC) #11
bedupontcisco_gmail.com
On 2014/06/09 22:23:29, Mostyn Bramley-Moore wrote: > @Sigbjørn, Mads: PTAL at this small fixup. > ...
6 years, 6 months ago (2014-06-10 07:55:12 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 08:58:34 UTC) #13
Message was sent while issue was closed.
Change committed as 175874

Powered by Google App Engine
This is Rietveld 408576698