All pastes #413325 Raw Edit

Unnamed

public text v1 · immutable
#413325 ·published 2007-03-28 10:11 UTC
rendered paste body
template<class T>
class A {
  T x;
public:
  class B {
  public:
    T y;
  };

  B f();
};

template<class T>
A<T>::B A<T>::f() {
  return B();
}

int main() {
  A<int> a;
  return 0;
}


-------------------------------------------------------------------------------------------

test.cpp:26: error: expected constructor, destructor, or type conversion before "A"