title: C++11 Proper Structure Initialization
body: <p>Having a structure like this in C++11:</p>
  
  <pre><code>struct von
  {
      std::string Name;
      unsigned int ID;
      std::vector&lt;std::string&gt; Checks;
  };
  </code></pre>
  
  <p>Should it be initialized like this: </p>
  
  <pre><code>    von v = {"",0,{}};
  </code></pre>
  
  <p>Or like this:</p>
  
  <pre><code>    von v = {};
  </code></pre>
  
  <p>Both ways seem to work, but the compiler warns about <code>-Wmissing-field-initializers</code> on the latter example. </p>
  
  <p><strong>Edit:</strong><br>
  Here are my compiler options:  </p>
  
  <pre><code>g++ main.cpp -ansi -Wall -Wextra -Weffc++ -std=c++0x
  </code></pre>
  
  <p>I'm using g++ (Debian 4.6.2-12) 4.6.2</p>