title: How can I fix this error 'no matching function for call'?
body: <p>Given the following code:</p>
  <pre><code>    std::map&lt;std::string, std::unique_ptr&lt;Obj&gt;&gt; objs;
      std::string str;
      Obj obj;
      std::unique_ptr&lt;Obj&gt; objUniquePtr = std::unique_ptr&lt;Obj&gt;(new Obj(obj));
      objs.insert({ str, objUniquePtr });   &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; ERROR
  </code></pre>
  <p>I get the following error:</p>
  <p><code>no matching function for call to 'std::map&lt;std::__cxx11::basic_string&lt;char&gt;, std::unique_ptr&lt;Obj&gt; &gt;::insert(&lt;brace-enclosed initializer list&gt;)'</code></p>
  <p>How can I fix this error?</p>