Boost logo

Boost Users :

Subject: [Boost-users] std::back_inserter() with move semantics?
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2009-02-06 11:30:04


Hi,

I'm currently using std::back_inserter on a ptr_vector, and the values being
inserted are boost::unique_ptr's. back_inserter does simple assignment but I
need it to call boost::move() on the thing being assigned (inserted). Does
boost have an algorithm that can do this?



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