DescriptionDisallow C++11 compilers from constructing OwnPtrs from 0
C++11 allows 0 to be implicit converted to std::nullptr_t, but Blink's
shim for std::nullptr_t does not have such support. To avoid inconsistency
between native and shimmed versions, delete the int constructor, which
makes conversions from 0 fail properly in C++11 mode.
R=jamesr
BUG=254668
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153846
Patch Set 1 #Patch Set 2 : Delete the int constructor #Patch Set 3 : Add a macro to disallow construction from zero #
Messages
Total messages: 14 (0 generated)
|