Created on1998-08-17.00:00:00 last changed277 months ago
Proposed resolution (10/00):
Change the grammar specified in 12.4 [over.oper] paragraph 1from
It appears from the grammar that explicit template arguments cannotbe specified for overloaded operator names. Does this mean thattemplate operators can never be friends?
But assuming that I read things wrong, then I should be able tospecify a global template 'operator +' by writing:
friend A::B operator + <>(char&);John Spicer:
Youshould be able to have explicit template arguments on operatorfunctions, but the grammar does seem to prohibit it (unless I'm readingit incorrectly). This is an error in the grammar, they should be permitted.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-04-25 00:00:00 | admin | set | status: dr -> tc1 |
| 2000-11-18 00:00:00 | admin | set | status: review -> dr |
| 2000-05-21 00:00:00 | admin | set | messages: +msg339 |
| 2000-05-21 00:00:00 | admin | set | status: drafting -> review |
| 1998-08-17 00:00:00 | admin | create | |