File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 27122712\begin {example }
27132713\begin {codeblock }
27142714struct S {
2715- operator auto() const { return 10; } // OK
27162715 template<class T>
27172716 operator auto() const { return 1.2; } // error: conversion function template
27182717};
Original file line number Diff line number Diff line change 18591859\pnum
18601860A placeholder type can appear in
18611861the \grammarterm {decl-specifier-seq} or \grammarterm {type-specifier-seq}
1862- in the declared return type of a function declarator that declares a function;
1862+ in the declared return type of a function declarator
1863+ that declares a function other than a conversion function\iref {class.conv.fct };
18631864the return type of the function is
18641865deduced from non-discarded \tcode {return} statements, if any, in the body
18651866of the function\iref {stmt.if }.
You can’t perform that action at this time.
0 commit comments