title: Initialize a struct which contains vector
body: <p>I'm looking for a method for initializing a complex struct which contains vector in a single row.</p>
  
  <p>For example if I have this structure:</p>
  
  <pre><code>struct A{
    double x;
    double y;
  };
  struct B{
    double z;
    double W;
  };
  struct C{
    A a;
    B b;
  };
  </code></pre>
  
  <p>I can initialize C in this way: <code>C c = {{0.0,0.1},{1.0,1.1}};</code></p>
  
  <p>But what If I have to initialize a struct like this?</p>
  
  <pre><code>struct A{
    double x;
    double y;
  };
  struct B{
    vector&lt;double&gt; values;
  };
  struct C{
    A a;
    B b;
  };
  </code></pre>
  
  <p>I have to do it in a single row because I want to allow the users of my application to specify in a single field all the initial values. And of course, I would prefer a standard way to do it and not a custom one.</p>
  
  <p>Thanks!</p>