title: Using 'new' keyword with struct in c++
body: <pre><code>#include "PQueue.h"
  
  struct arcT;
  
  struct coordT {
      double x, y;
  };
  
  struct nodeT {
      string name;
      coordT* coordinates;
      PQueue&lt;arcT *&gt; outgoing_arcs;
  };
  
  struct arcT {
      nodeT* start, end;
      int weight;
  };
  
  int main(){
      nodeT* node = new nodeT; //gives error, there is no constructor
  }
  </code></pre>
  
  <p>My purpose is to create a new <code>nodeT</code> in heap. Error is:</p>
  
  <blockquote>
    <p>error C2512: 'nodeT' : no appropriate default constructor available</p>
  </blockquote>