fork download
  1. template<class A> struct S {
  2. template<class B> friend S<B> f(B);
  3. };
  4.  
  5. template<class B> S<B> f(B) {return S<B>{};}
  6.  
  7. int main() {
  8. f(5);
  9. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty