Template conversion functions
13.7.3 [temp.mem]
PremAnand Rao

Created on 2006-05-23.00:00:00 last changed 161 months ago


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):

  1. Change [over.ics.user] paragraph 3 as follows:

  2. 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.
  3. Change 13.7.3 [temp.mem] paragraph 5 as follows:

  4. 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.
  5. Change 13.7.3 [temp.mem] paragraph 6 as follows:

  6. 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.
  7. Change 13.7.3 [temp.mem] paragraph 7 as follows:

  8. 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.
  9. Change 13.7.3 [temp.mem] paragraph 8 as follows:

  10. Overload resolution ( [over.ics.rank]) and partial ordering ( [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.
  11. Change [temp.deduct.conv] paragraph 1 as follows:

  12. 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 [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 [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.

Date User Action Args
2008-10-05 00:00:00adminsetstatus: wp -> cd1
2007-08-05 00:00:00adminsetstatus: dr -> wp
2007-05-06 00:00:00adminsetmessages: + msg1509
2007-05-06 00:00:00adminsetstatus: ready -> dr
2006-11-05 00:00:00adminsetmessages: + msg1401
2006-11-05 00:00:00adminsetstatus: open -> ready
2006-05-23 00:00:00admincreate