fork download
  1. #include <type_traits>
  2.  
  3. struct foo { void bar(); };
  4.  
  5. static_assert(not std::is_pointer<void (foo::*)()>::value, "Pointers to member functions are not pointers");
  6.  
  7. int main() {}
Success #stdin #stdout 0s 2924KB
stdin
Standard input is empty
stdout

Standard output is empty