Boost 1.50
MSVS 2010
My problem occurs when I attempt to serialize pcl::PointCloudpcl::PointXYZ
g...specifically g.points which is std::vector > pcl::PointCloud<Point>::points.
I have the following code:
#ifndef SERIALIZATIONSUPPORT_H
#define SERIALIZATIONSUPPORT_H
#include
#include
#include // needed for pcl::PointXYZ Point
#include
#include
#include
#include
#include
typedef pcl::PointXYZ Point;
namespace boost {
namespace serialization {
template<class Archive>
void serialize(Archive & ar, pcl::PointCloud<Point>& g, const unsigned
int version) {
ar & g.points;
}
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];
}
} // namespace serialization
} // namespace boost
#endif /* SERIALIZATIONSUPPORT_H */
Error received: error C2039: 'serialize' : is not a member of
'Eigen::internal::workaround_msvc_stl_support<T>'
Special notes...no problems with my code when compiling on Ubuntu 12.04 LTS
using Boost 1.48. Only a problem when compiling on Windows.
Any idea as to why I would be receiving this? I already have a method for
serializing Point. Shouldn't that be enough?
--
View this message in context: http://boost.2283326.n4.nabble.com/boost-serialization-serialize-is-not-a-me...
Sent from the Boost - Users mailing list archive at Nabble.com.