title: C++ array initializer. Using enum type
body: <pre><code>class ARouter {
      enum directions {north, neast, east, seast, south, swest, west, nwest};
      static directions gon[] = {north, neast, nwest, east, west, seast, swest, south};
  };
  </code></pre>
  <p>Hi, does anyone know what is the matter with the above code?</p>
  <p>I am getting 2 errors for the second line from VC++2008Ex:</p>
  <blockquote>
  <p>error C2059: syntax error : '{'</p>
  <p>error C2334: unexpected token(s) preceding '{'; skipping apparent function body</p>
  </blockquote>