Skip to content

The reference of a conversion function(template) with a deduced return type #4671

Closed
@xmh0511

Description

@xmh0511

In N4861, the relevant rule temp.mem#5 is:

A specialization of a conversion function template is referenced in the same way as a non-template conversion function that converts to the same type.

After P1787, the above normative rule is radically changed to be a note

[Note 1: A specialization of a conversion function template is referenced in the same way as a non-template conversion function that converts to the same type ([class.conv.fct]).

There's no normative rule based on to interpret why we should use a.operator int*(); to refer to the specialization. I also feel that this issue is similar with How to explicitly call a conversion function whose conversion-type-id contains a placeholder specifier that I have posted it to wmm@edg.com, which has became the issue 2493 that will be published on http://open-std.org/jtc1/sc22/wg21/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions