fork download
  1. struct BBB
  2. {
  3. typedef bool ( BBB::*func_type )();
  4. func_type func;
  5. int a;
  6. int b;
  7. };
  8. BBB bbb = BBB();
  9.  
  10.  
  11. #include <cassert>
  12.  
  13. int main()
  14. {
  15. assert(bbb.func == 0);
  16. }
  17.  
Success #stdin #stdout 0.02s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty