title: C++ union array and vars?
body: <p>There's no way to do something like this, in C++ is there?</p>
  
  <pre><code>union {
      {
          Scalar x, y;
      }
      Scalar v[2];
  };
  </code></pre>
  
  <p>Where <code>x == v[0]</code> and <code>y == v[1]</code>?</p>