fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <type_traits>
  4.  
  5. using namespace std;
  6.  
  7. class X
  8. {
  9. };
  10.  
  11. class Y : public X
  12. {
  13. };
  14.  
  15. int main()
  16. {
  17. cout << boolalpha << is_assignable<X*, Y*>::value << endl;
  18. }
  19.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
false