template< typename P >class A{ private: typedef A< P > TSelf; public: P m; A( P f ) : m( f ){}}; class B : public A< int >{ private: typedef A< int > TBase; public: B( int f ) : TBase( f ){}}; int main( void ){ B lb; return ( 0 );}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:24:4: error: no matching function for call to 'B::B()' prog.cpp:19:3: note: candidates are: B::B(int) prog.cpp:15:1: note: B::B(const B&)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!