Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-03-27 12:36:30

In attempting to test serialization input for the proposed Boost
Units library, I am getting this error :

archive/detail/iserializer.hpp:589: error: no matching function for
call to 'load_wrapper(boost::archive::binary_iarchive&, const
double&, boost::serialization::is_wrapper<double>)'

corresponding to this code :

     std::ifstream ifs

     boost::archive::binary_iarchive bia(ifs);

     for (int i=0;i<100;++i)
         quantity<CGS::area> ac;

         bia >> ac;


where I have defined

/// Boost Serialization library support for quantities.
template<class Archive,class Unit,class Y>
inline void serialize(Archive& ar,boost::units::quantity<Unit,Y>&
q,const unsigned int version)
     ar & q.value();

Am I missing something obvious here? I get basically the same error
if I try using text_iarchive instead...


Boost list run by bdawes at, gregod at, cpdaniel at, john at