#include <iostream>using namespace std; int main() { class A { public: static double test_code(const A& a); }; class B : public A { public: B(int i) { }; static double test_code2(const B& b); }; A::test_code(2); B::test_code2(2); return 0; }
1 2 10 42 11
prog.cpp: In function ‘int main()’: prog.cpp:18: error: no matching function for call to ‘main()::A::test_code(int)’ prog.cpp:8: note: candidates are: static double main()::A::test_code(const main()::A&)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!