1 Jul
2013
1 Jul
'13
1:38 p.m.
While attempting to serialize a std::vector<T>, where T is a movable but noncopyable type, I was getting blown up by the call to s.push_back() on line 65 of collections_load_imp.hpp (Boost 1.53.0). In my local copy of that header I changed s.push_back(t.reference()) to s.push_back(std::move(t.reference())). Is this a safe change? Is there a better way to handle this case?