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