The title says it all really. The failure occurs because the insert algorithm expects the container<div>to provide a 3-arg insert of the form</div><div><br></div><div>container.insert( position, begin, end );</div><div><br>

</div><div>whereas map&#39;s, multimap&#39;s and set&#39;s insert method only takes two arguments...</div><div><br></div><div>map.insert( begin, end );</div><div><br></div><div>Is this limitation by design? It would be easy to provide specialisations for maps, mmaps and sets, but</div>

<div>that would not be a completely general solution.</div><div><br></div><div>- Rob.</div>