Boost logo

Boost Users :

Subject: [Boost-users] [Range] insert algorithm fails if target is a map
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-11-23 08:24:25


The title says it all really. The failure occurs because the insert
algorithm expects the container
to provide a 3-arg insert of the form

container.insert( position, begin, end );

whereas map's, multimap's and set's insert method only takes two
arguments...

map.insert( begin, end );

Is this limitation by design? It would be easy to provide specialisations
for maps, mmaps and sets, but
that would not be a completely general solution.

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net