Movatterモバイル変換


[0]ホーム

URL:


Issue 1362 - WG21 CWG Issues
Title
Complete type required for implicit conversion to T&
Status
cd3
Section
6.3 [basic.def.odr]
Submitter
Richard Smith

Created on2011-08-16.00:00:00 last changed145 months ago

Messages

msg3786 (view)
Date: 2012-02-15.00:00:00

[Voted into the WP at the February, 2012 meeting;moved to DR at the October, 2012 meeting.]

msg3422 (view)
Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

Change the indicated bullet of 6.3 [basic.def.odr] paragraph 4as follows:

  • an expression that is not a null pointer constant, and hastype other thancvvoid*, is converted tothe type pointer toT or reference toT usingan implicita standard conversion (7.3 [conv]), adynamic_cast (7.6.1.7 [expr.dynamic.cast]) or astatic_cast (7.6.1.9 [expr.static.cast]),or

msg3421 (view)
Date: 2022-09-25.18:08:42

The requirement in 6.3 [basic.def.odr] paragraph 4 that atypeT must be complete if an expression is implicitlyconverted to a pointer toT or reference toTinadvertently applies to user-defined conversions, although it wasintended only to refer to built-in conversions.

History
DateUserActionArgs
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: +msg3786
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-09-06 00:00:00adminsetmessages: +msg3422
2011-08-16 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp