Title
Overload resolution and conversion of std::nullptr_t to bool
Status
cd2
Section
12.2.4.3 [over.ics.rank]
Submitter
Mike Miller

Created on 2009-09-02.00:00:00 last changed 178 months ago

Messages

Date: 2010-03-15.00:00:00

[Voted into WP at March, 2010 meeting.]

Date: 2009-10-15.00:00:00

Proposed resolution (October, 2009):

Change 12.2.4.3 [over.ics.rank] bullet 4.1 as follows:

  • A conversion that is not a conversion of does not convert a pointer, or a pointer to member, or std::nullptr_t to bool is better than another conversion that is such a conversion one that does.
Date: 2009-09-02.00:00:00

Conversion of a pointer or pointer to member to bool is given special treatment as a tiebreaker in overload resolution in 12.2.4.3 [over.ics.rank] paragraph 4, bullet 1:

  • A conversion that is not a conversion of a pointer, or pointer to member, to bool is better than another conversion that is such a conversion.

It would be reasonable to expect a similar provision to apply to conversions of std::nullptr_t to bool.

History
Date User Action Args
2010-03-29 00:00:00adminsetmessages: + msg2727
2010-03-29 00:00:00adminsetstatus: ready -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2372
2009-11-08 00:00:00adminsetstatus: open -> ready
2009-09-02 00:00:00admincreate