title: How to use GC_malloc and then call the constructor in C++?
body: <p>I am using the Boehm Garbage Collection in C++. How to call the constructor after allocation using GC_malloc?</p>
  
  <pre><code>SomeClass *i = new SomeClass(); // Here the constructor is called.
  SomeClass *j = (SomeClass *)GC_malloc(sizeof(SomeClass)); // How to call the constructor here?
  </code></pre>