title: C++ new and delete operator overloading
body: <pre><code>void operator delete(void *p)
  {
      printf("\nDELETE");
  
      // code to actually delete/free object
  }
  
  
  int _tmain(int argc, _TCHAR* argv[])
  {
  
      int *p = new int(10);
  
      delete p;
  
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>I am getting error <strong>operator delete already defined</strong></p>
  
  <p>I want to override new and delete operator globally. </p>