title: Is it possible to erase an array of structs with the brace initializer?
body: <p>I was wondering: I have an array of structs with some data. If I want to erase all the data and leave all the values into the array of structs as default, is it possible to use the C++11 bracket initializer?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  typedef struct{
   int i;
   char a;
  }mystruct;
  
  int main()
  {
      mystruct structure[2];
      structure{};
      structure[0].i = 69;
      cout &lt;&lt; structure[0].i &lt;&lt; endl; // Should print 69
      structure{};
      cout &lt;&lt; structure[0].i &lt;&lt; endl; //Should print 0
  
     return 0;
  }
  </code></pre>
  
  <p>EDIT:
  Currently my compiler says expected ; before {, so it seems it does not recognise the brace initializer.</p>