Created on 1998-08-17.00:00:00 last changed 208 months ago
Proposed resolution (10/00):
Change the grammar specified in 16.5 [over.oper]
paragraph 1 from
It appears from the grammar that explicit template arguments cannot be specified for overloaded operator names. Does this mean that template operators can never be friends?
But assuming that I read things wrong, then I should be able to specify a global template 'operator +' by writing:
friend A::B operator + <>(char&);John Spicer:
You should be able to have explicit template arguments on operator functions, but the grammar does seem to prohibit it (unless I'm reading it incorrectly). This is an error in the grammar, they should be permitted.
|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|