title: C++ initialize anonymous struct
body: <p>I'm still earning my C++ wings; My question is if I have a struct like so:</p>
  
  <pre><code>struct Height
  {
      int feet;
      int inches;
  };
  </code></pre>
  
  <p>And I then have some lines like so:</p>
  
  <pre><code>Height h = {5, 7};
  Person p("John Doe", 42, "Blonde", "Blue", h);
  </code></pre>
  
  <p>I like the initialization of structs via curly braces, but I'd prefer the above be on one line, in an anonymous Height struct. How do I do this? My initial naive approach was:</p>
  
  <pre><code>Person p("John Doe", 42, "Blonde", "Blue", Height{5,7});
  </code></pre>
  
  <p>This didn't work though. Am I very far off the mark?</p>