title: Is it safe to put an std::array<POD, N> in a union?
body: <p>I have a union declared like that:</p>
  
  <pre><code>union
  {
      int all[4];
      struct
      {
          int a, b, c, d;
      };
  };
  </code></pre>
  
  <p>The point of the <code>all</code> array is simply to make iteration over the 4 fields simpler.</p>
  
  <p>To make it even simpler, I'd like to replace it with an <code>std::array&lt;int, 4&gt;</code>. Would that expose me to <a href="http://www.catb.org/jargon/html/N/nasal-demons.html" rel="noreferrer">nasal demons</a>?</p>