title: ‘obj_type’ was not declared in this scope, note: suggested alternative: enum Value_type
body: <p>I'm using JSON Spirit to parse and generate json.</p>
  
  <p>I cannot use <code>using namespace json_spirit</code> because another library uses conflicting names.</p>
  
  <p>I'm trying to detect the type <a href="http://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented#val" rel="nofollow">as specified here</a> of a read message with</p>
  
  <pre><code>if(message.type() == obj_type)
  </code></pre>
  
  <p>but the compiler reports</p>
  
  <pre><code>error: ‘obj_type’ was not declared in this scope
         if(stamper_message.type() == obj_type){
                                      ^
  note: suggested alternative:
  In file included from /usr/local/include/json_spirit.h:13:0:
  /usr/local/include/json_spirit_value.h:32:22: note:   ‘obj_type’
       enum Value_type{ obj_type, array_type, str_type, bool_type, int_type, real_type, null_type };
  </code></pre>
  
  <p>I have also added this line</p>
  
  <pre><code>using json_spirit::Value_type;
  </code></pre>
  
  <p>and this line</p>
  
  <pre><code>typedef json_spirit::Value_type Value_type;
  </code></pre>
  
  <p>but it doesn't help.</p>
  
  <p>I apologize for such a simple question, but I cannot find a solution, so how can this <code>enum</code> be imported for use in this way?</p>