title: Proper way to insert into unordered map via function
body: <p>Say I have something like this:</p>
  
  <pre><code>std::unordered_map&lt;std::string, std::string&gt; *map;
  </code></pre>
  
  <p>as a field. I want to write a function like this:</p>
  
  <pre><code>void myFunc(std::string&amp; s, std::string&amp; s2){
      map-&gt;insert(std::make_pair(s, s2));
  }
  </code></pre>
  
  <p>I cannot for the life of me get something along these lines to compile. Happy to post more code. But I've changed my map type from strings to ints and this works no problem. Thanks! </p>