Boost logo

Boost Users :

Subject: [Boost-users] boost_serialization ok with vector<int> but not with vector<int *>
From: Tony Camuso (tcamuso_at_[hidden])
Date: 2015-03-05 09:36:56


Why is the compiler okay with ...
        std::vector<int>intvec;

  ... but throws an error for ...
        std::vector<int *>pintvec;

The error is ... /usr/include/boost/serialization/access.hpp:118: error: request for member 'serialize' in 't', which is of non-class type 'int' t.serialize(ar, file_version);


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