- Title
- Template conversion functions
- Status
- cd1
- Section
- 13.7.3 [temp.mem]
- Submitter
- PremAnand Rao
Created on 2006-05-23.00:00:00 last changed 217 months ago
Messages
Date: 2007-04-15.00:00:00
[Voted into WP at April, 2007 meeting.]
Date: 2006-10-15.00:00:00
Proposed resolution (October, 2006): Change 12.2.4.2.3 [over.ics.user] paragraph 3 as
follows: Change 13.7.3 [temp.mem] paragraph 5 as follows: Change 13.7.3 [temp.mem] paragraph 6 as follows: Change 13.7.3 [temp.mem] paragraph 7 as follows: Change 13.7.3 [temp.mem] paragraph 8 as follows: Change 13.10.3.4 [temp.deduct.conv] paragraph 1 as follows:
If the user-defined conversion is specified by a
template
conversion function specialization of a conversion function
template, the second standard conversion sequence must have exact
match rank.
A specialization of a
template conversion
function conversion function template is referenced in the
same way as a non-template conversion function that converts to the
same type.
A specialization of a
template conversion
function conversion function template is not found by name
lookup. Instead, any template conversion
functions conversion function templates visible in the
context of the use are considered.
A
using-declaration using-declaration in a
derived class cannot refer to a specialization of a template
conversion function conversion function template in a base
class.
Overload resolution (12.2.4.3 [over.ics.rank]) and partial
ordering (13.7.7.3 [temp.func.order]) are used to select the
best conversion function among multiple
template conversion
functions specializations of conversion function templates
and/or non-template conversion functions.
Template argument deduction is done by comparing the return type of
the
template conversion function conversion function
template (call it P ) with the type that is required as
the result of the conversion (call it A ) as described in
13.10.3.6 [temp.deduct.type].
Date: 2006-05-23.00:00:00
The wholesale replacement of the phrase “template
function” by the resolution of issue 105 seems to have overlooked the similar phrase “template
conversion function.” This phrase appears a number of times in
12.2.4.2.3 [over.ics.user] paragraph 3, 13.7.3 [temp.mem] paragraphs 5-8, and 13.10.3 [temp.deduct] paragraph 1.
It should be systematically replaced in similar
fashion to the resolution of issue 105.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-10-05 00:00:00 | admin | set | status: wp -> cd1 |
| 2007-08-05 00:00:00 | admin | set | status: dr -> wp |
| 2007-05-06 00:00:00 | admin | set | messages: + msg1509 |
| 2007-05-06 00:00:00 | admin | set | status: ready -> dr |
| 2006-11-05 00:00:00 | admin | set | messages: + msg1401 |
| 2006-11-05 00:00:00 | admin | set | status: open -> ready |
| 2006-05-23 00:00:00 | admin | create | |