Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.MultiIndex question on merge
From: Igor R (boost.lists_at_[hidden])
Date: 2009-04-28 14:29:33


> {
> scoped_timer timeme("merge by FOR_EACH: ");
>  std::for_each(
>                    data_setB.begin(),
>                    data_setB.end(),std::inserter(data_setA));
> }
>
> The compiler gives long error on:
> error: no matching function for call to
> 'inserter(boost::multi_index::multi_index_container etc....
>
> What is the correct syntax of the inserter with multi_index_container ?

 std::for_each(data_setB.begin(), data_setB.end(),
std::inserter(data_setA, data_setA.end()));


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