class s_api { public: }; class PB { public: PB ( s_api *sa ) {} }; class TValue : public s_api { public: TValue () {} }; int main() { TValue tvl; PB pb(tvl); //tvl is object of class TValue }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:17:14: error: no matching function for call to 'PB::PB(TValue&)' prog.cpp:7:5: note: candidates are: PB::PB(s_api*) prog.cpp:5:10: note: PB::PB(const PB&)
Standard output is empty