title: How do I initialize a struct in a Class constructor list?
body: <p>I want to initialize a struct within a default class initializer list. For example, if I have a class like like this:</p>
  
  <pre><code>class Foo
  {
  private:
      int x;
      int y;
      int z;
      somestruct p;
  public:
      Foo(): x(1), y(2), z(3)
      {
          // other stuff
      }
  };
  </code></pre>
  
  <p>So, I can clearly initialize primitive types this way - how do I initialize a struct, for example the <code>somestruct p</code> parameter? Are there any limitations on the design of <code>p</code> if initialized this way?</p>