Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.MultiIndex question on merge
From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2009-04-28 14:25:52


________________________________________
De: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]] En nombre de arm2arm [arm2arm_at_[hidden]]
Enviado el: martes, 28 de abril de 2009 19:42
Para: boost-users_at_[hidden]
Asunto: Re: [Boost-users] Boost.MultiIndex question on merge

> But I am running in to trouble with inserter:
> [...]
> std::for_each(
> data_setB.begin(),
> data_setB.end(),std::inserter(data_setA));

I think the correct way to use std::inserter is

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

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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