Title
Explicit instantiation of in-class friend definition
Status
extension
Section
13.7.5 [temp.friend]
Submitter
Jens Maurer

Created on 2016-04-28.00:00:00 last changed 80 months ago

Messages

Date: 2018-03-15.00:00:00

Notes from the March, 2018 meeting:

CWG did not come to consensus on the desired outcome and feels that the question should be addressed by EWG.

Date: 2018-04-11.00:00:00

The status of an example like the following is unclear:

  struct S {
   template <class T> friend void f(T) { }
  };
  template void f(int);  // Well-formed?

A friend is not found by ordinary name lookup until it is explicitly declared in the containing namespace, but declaration matching does not use ordinary name lookup. There is implementation divergence on the handling of this example.

History
Date User Action Args
2018-04-11 00:00:00adminsetmessages: + msg6217
2018-04-11 00:00:00adminsetstatus: open -> extension
2016-04-28 00:00:00admincreate