Why is my insert into std::map failing?
<p>In my header file, I'm declaring a map like so:</p>

<pre><code>std::map&lt;LPD3DXSPRITE, LPDIRECT3DTEXTURE9&gt; sprites;
</code></pre>

<p>In my C++ file, I am trying to insert like so:</p>

<pre><code>sprites.insert(sprite, texture);
</code></pre>

<p>The types I am passing to sprites.insert are correct.  Why can I not insert this way?  What is the proper way to insert?  When I do this, the error I get is like this (snipped):</p>

<blockquote>
  <p>error C2664:
  'std::_Tree&lt;_Traits>::iterator
  std::_Tree&lt;_Traits>::insert(std::_Tree&lt;_Traits>::iterator,const
  std::pair&lt;_Ty1,_Ty2> &amp;)' : cannot
  convert parameter 1 from
  'LPD3DXSPRITE' to
  'std::_Tree&lt;_Traits>::iterator'</p>
</blockquote>
