fork(1) download
  1. #include <cstddef>
  2.  
  3. struct CL {
  4. void* operator new(size_t s, bool b = true);
  5. void operator delete(void* o, bool b = true);
  6. };
  7. void* CL::operator new(size_t s, bool b) { return ::operator new(s); }
  8. void CL::operator delete(void* o, bool b) { return ::operator delete(o); }
  9.  
  10. auto aut = new (false) CL;
  11.  
  12. // Since ideone doesn't appear to allow you to specify compiler
  13. // command line arguments, here's a dummy main() to let it link.
  14. int main() {}
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty