title: C++ struct default constructor mbed
body: <p>I have this definition for my structure:</p>
  
  <pre><code>struct localframevelo
  {
      double ivelo; //i(x) component of velocity
      double cvelo; //c(y) component of velocity
      double rvelo; //r(z) component of velocity
      double speed; //total magnitude of velocity
  
      localframevelo()
      {
          ivelo = 0;
          cvelo = 0;
          rvelo = 0;
          speed = 0;
      }
      localframevelo(double init_ivelo, double init_cvelo, double init_rvelo)
      {
          ivelo = init_ivelo;
          cvelo = init_cvelo;
          rvelo = init_rvelo;
          speed = sqrt(pow(ivelo, 2.0) + pow(cvelo, 2.0) + pow(rvelo, 2.0));
      }
  };
  </code></pre>
  
  <p>Here is a class that I am trying to use the default constructor of localframevelo in:</p>
  
  <pre><code>    class missionprofile
      {
      //misison waypoints structure************************
      private:
          double stdholdtime; // 0.25 second within tolerance radius to "reach" a waypoint
          double stdtolrad; // 0.5 meter tolerance radius (error magnitude) to "be at" a waypoint
          localframevelo stdvelo;
          waypoint missionwaypoints[MAXLISTLENGTH];
          int numwaypoints;
  
      public:
          missionprofile();
          missionprofile(int points, double StdHoldTime, double StdTolRadius, localframevelo StdVelo);
  </code></pre>
  
  <p>};</p>
  
  <p>Here is the implementation of the default constructor for the class that I am trying to call the localframevelo's default constructor:</p>
  
  <pre><code>missionprofile::missionprofile()
  {
      numwaypoints = 0;
      stdholdtime = 0;
      stdtolrad = 0;
      stdvelo();          //ERROR
  }
  </code></pre>
  
  <p>I get this error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type. I am using the mbed compiler, what is wrong with my code?</p>