Skip to content

Commit bcad55e

Browse files
Dawn Perchikzygoloid
authored andcommitted
P0961R1 Relaxing the structured bindings customization point finding rules
1 parent 8139533 commit bcad55e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/declarators.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,10 @@
23502350
the \grammarterm{identifier-list} shall be equal to the value of that
23512351
expression. The \grammarterm{unqualified-id} \tcode{get} is looked up
23522352
in the scope of \tcode{E} by class member access lookup\iref{basic.lookup.classref},
2353-
and if that finds at least one declaration, the initializer is
2353+
and if that finds at least one declaration
2354+
that is a function template whose first template parameter
2355+
is a non-type parameter,
2356+
the initializer is
23542357
\tcode{e.get<i>()}. Otherwise, the initializer is \tcode{get<i>(e)},
23552358
where \tcode{get} is looked up in the associated namespaces\iref{basic.lookup.argdep}.
23562359
In either case, \tcode{get<i>} is interpreted as a \grammarterm{template-id}.

0 commit comments

Comments
 (0)