- Title
- Can function-notation calls to operator functions be dependent?
- Status
- cd1
- Section
- 13.8.3 [temp.dep]
- Submitter
- Daveed Vandevoorde
Created on 2005-07-19.00:00:00 last changed 217 months ago
Messages
Date: 2006-10-15.00:00:00
[Voted into WP at the October, 2006 meeting.]
Date: 2005-10-15.00:00:00
Proposed resolution (October, 2005): Change 13.8.3 [temp.dep] paragraph 1 as
indicated: ...In an expression of the form: where the postfix-expression is an Change 13.8.4.2 [temp.dep.candidate] paragraph 1 as
indicated: (See also issue 561.)
postfix-expression ( expression-listopt )
identifier
unqualified-id but not a template-id,
the identifier unqualified-id denotes
a dependent name if and only if any of the expressions in
the expression-list is a type-dependent expression
(13.8.3.3 [temp.dep.expr])...
For a function call that depends on a template parameter, if the
function name is an unqualified-id but not
a template-id, or if the function is called using operator
notation, the candidate functions are found using the
usual lookup rules (6.5.3 [basic.lookup.unqual], 6.5.4 [basic.lookup.argdep]) except that...
Date: 2026-07-27.15:54:01
The description of dependent function calls in
13.8.3 [temp.dep] paragraph 1 applies only to
identifiers in postfix-notation function calls and to operator
notation calls for operator functions: In an expression of the form: where the postfix-expression is an identifier,
the identifier denotes a dependent name if and only if
any of the expressions in the expression-list is a
type-dependent expression (13.8.3.3 [temp.dep.expr]). If an
operand of an operator is a type-dependent expression, the operator
also denotes a dependent name. It would appear from the related passage in
13.8.4.2 [temp.dep.candidate] paragraph 1 that the description of
postfix-notation function calls should apply to all
unqualified-ids that are not template-ids,
including operator-function-ids, not just to
identifiers:
postfix-expression ( expression-listopt )
For a function call that depends on a template parameter, if the
function name is an unqualified-id but not
a template-id, the candidate functions are found...
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-10-05 00:00:00 | admin | set | status: wp -> cd1 |
| 2007-05-06 00:00:00 | admin | set | status: dr -> wp |
| 2006-11-05 00:00:00 | admin | set | messages: + msg1447 |
| 2006-11-05 00:00:00 | admin | set | status: ready -> dr |
| 2006-04-22 00:00:00 | admin | set | status: review -> ready |
| 2005-10-22 00:00:00 | admin | set | messages: + msg1252 |
| 2005-10-22 00:00:00 | admin | set | status: open -> review |
| 2005-07-19 00:00:00 | admin | create | |