This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


2306. Nested friend templates of class templates

Section: 13.7.5  [temp.friend]     Status: NAD     Submitter: John Spicer     Date: 2016-07-17

The current wording is not clear how to declare that a nested class template of a class template is a friend of its containing template. For example, is

  template <class T> struct C {
    template <bool b> class Foo;
    template <bool b> friend class Foo;
  };

correct, or should it be

  template <class T> struct C {
    template <bool b> class Foo;
    template <class X> template <bool b> friend class C<X>::Foo;
  };

Rationale (June, 2018)

The submitter asked that the issue be withdrawn.