error C2039: 'serialize' : is not a member of 'std::vector<_Ty>'
boost, c++, serialization
Solution
The problem is that you have no special serialization for std::vector defined, so it falls back to the default serialization, which tries to call a member called serialize on the class to be serialized.
To get the special code for std::vector, you need to include `<boost/serialization/vector.hpp>`, as described here:
http://www.boost.org/doc/libs/1_54_0/libs/serialization/doc/serialization.html#models
Problem
``` //define typedef std::vector<double> vertex_data; //serialise std::ostringstream oss; boost::archive::text_oarchive oa(oss); vertex_data data = .......get_data();//returns vertex_data oa & m_state & data;//send this data over network //deserialise std::istringstream iss(recvd_msg); boost::archive::text_iarchive ia(iss); vertex_data data; ia>>data; //error here ``` Why am I getting this error during deserialisation?