title: <error C2059: syntax error : 'constant'> when compiling with const int
body: <p>I am getting the following errors when compiling the below code:</p>
  
  <pre><code>3&gt;c:\hedge\hedge\hedge\AisTarget.h(22) : error C2059: syntax error : 'constant'
  3&gt;c:\hedge\hedge\hedge\AisTarget.h(22) : error C2238: unexpected token(s) preceding ';'
  </code></pre>
  
  <hr>
  
  <pre><code>#if !defined(AisTarget_h)
  #define AisTarget_h
  
  #include "GeneralAviationItems.h"
  #include &lt;string&gt;
  
  namespace HEDGE {
      using namespace GeneralAviation; 
  
      class AisTarget : public WaypointLatLon {
          public:
              static const int NO_DATA = -1000; //here is the error
      };    
  } // end namespace HEDGE
  
  #endif
  </code></pre>