title: Using boost_unordered_hash_map with char* key
body: <p>I have a mix of C and C++ files that collectively form my program. I am using boost unordered hash map which I initially defined as:</p>
  
  <pre><code>typedef boost::unordered_map&lt;char *, int&gt; my_map;
  </code></pre>
  
  <p>However, the map was acting weird; find(key) could not find keys that actually existed in the hash map. I, then, changed the definition to:</p>
  
  <pre><code>typedef boost::unordered_map&lt;std::string, int&gt; my_map;
  </code></pre>
  
  <p>and now the hash map works fine. Nevertheless, it is inconvenient for me to convert my char * to std::string in order to use the map. Is there a way to make the first definition work?</p>