fork download
  1. template< typename P >
  2. class A
  3. {
  4. private:
  5.  
  6. typedef A< P > TSelf;
  7.  
  8.  
  9. public:
  10. P m;
  11. A( P f ) : m( f ){}
  12. };
  13.  
  14. class B : public A< int >
  15. {
  16. private:
  17. typedef A< int > TBase;
  18. public:
  19. B( int f ) : TBase( f ){}
  20. };
  21.  
  22. int main( void )
  23. {
  24. B lb( 8 );
  25. return ( 0 );
  26. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty