All pastes #232822 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-11-01 15:57 UTC
rendered paste body
class parent{
public:
   template <class T>
   T parent::foo(){
      return T;
   }
};
class A : public parent{};
class B: public parent{};

int main(){
   A a;
   a.foo();
}