fork download
  1. class s_api {
  2. public:
  3. };
  4.  
  5. class PB {
  6. public:
  7. PB ( s_api *sa ) {}
  8. };
  9.  
  10. class TValue : public s_api {
  11. public:
  12. TValue () {}
  13. };
  14.  
  15. int main() {
  16. TValue tvl;
  17. PB pb(tvl); //tvl is object of class TValue
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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&)
stdout

Standard output is empty