What is wrong with following C++ code (regarding shared_ptr)
<p>I am trying to get up to speed with using shared_ptr, but I can't seem to figure out why the following code wont compile.</p>

<p>In the header file, private member declaration:</p>

<pre><code>std::map&lt;std::string, str::tr1::shared_ptr&lt; std::vector&lt;int&gt; &gt; &gt; *_myMap;
</code></pre>

<p>In the constructor, trying to instantiate an object of the above:</p>

<pre><code>_myMap = new map&lt;string, std::tr1::shared_ptr&lt; vector&lt;int&gt; &gt; &gt;();
</code></pre>

<p>The error message:</p>

<pre><code>Test.cpp:14:68: error: cannot convert ‘std::map&lt;std::basic_string&lt;char&gt;, std::tr1::shared_ptr&lt;std::vector&lt;int&gt; &gt; &gt;*’ to ‘std::map&lt;std::basic_string&lt;char&gt;, std::vector&lt;int&gt; &gt;*’ in assignment
</code></pre>

<p>I'd like to convert my pointers step by step, but I can't seem to figure out why the above shoots an error. Can anyone advise? Thanks!</p>

<p>EDIT:</p>

<p>I found out why. I had 2 vim instances open, and one was writing to a temporary swap file and not actually looking at the changes when compiling. Thanks for the input guys.</p>
