title: Is it possible to get a value of an enum member at compile time?
body: <p>Is it possible to get a value of an enum member at compile time?</p>
  
  <p>In fact, I want to be able to do something like this:</p>
  
  <pre><code>enum { 
     FOO_FIRST = -1,
     FOO_A,
     FOO_B,
     FOO_C,
     FOO_LAST
  };
  
  #if FOO_LAST &gt; 10
  //...
  #else
  //..
  #endif
  </code></pre>
  
  <p>I know that the <code>cpp</code> don't know about variables, bad syntax, etc; only things that start with a <code>#</code>(right)? but members of an enum has fixed-size and cannot be changed just like 10 (constant integer) value and the compiler know its size and values. so, Is there no any possibility to do such comparison (as I did above)? Could I use gcc-extensions?</p>
  
  <p>I don't wish to rewrite all my enumerations by using <code>#define</code>s and don't take my time doing some macros change.</p>