fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A{virtual void func1(){}};
  5.  
  6. class B{virtual void func2(){}};
  7.  
  8. class C: public A, B
  9. {};
  10.  
  11. int main()
  12. {
  13. cout << boolalpha << is_convertible<A*, B*>::value;
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
false