title: Properly Overloading new/delete new[]/delete[]
body: <p>This is a follow up to my previous question,</p>
  
  <p><a href="https://stackoverflow.com/questions/5613982/initializing-a-class-using-malloc">Initializing a class using malloc</a></p>
  
  <p>Accepted answer on the question works and gives me new/delete on the avr-gcc, here is the problem but my overloaded new delete wracks havoc on regular gcc, what is the proper way to overload new delete all my classes derive from a common base class so ideally i would like to just override new delete for my object so it does not mess with stl stdlib etc.</p>