Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::serialization: 'serialize' is not a member of 'Eigen::internal::workaround_msvc_stl_support<T>'
From: LynnC (lynnaucpe_at_[hidden])
Date: 2014-08-13 14:52:50


As mentioned in the original post:

g.points is std::vector<Point, Eigen::aligned_allocator&lt;Point> >
pcl::PointCloud<Point>::points

I include #include <boost/serialization/vector.hpp> so that handles the
vector part and I created a serialize function for the Point:

    template<class Archive>
    void serialize(Archive & ar, Point& g, const unsigned int version) {
        ar & g.getVector3fMap().data()[0];
        ar & g.getVector3fMap().data()[1];
        ar & g.getVector3fMap().data()[2];
    }

Shouldn't that be enough.

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-serialization-serialize-is-not-a-member-of-Eigen-internal-workaround-msvc-stl-support-T-tp4666309p4666317.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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