Boost logo

Boost Users :

Subject: [Boost-users] [serialization] enable_if managed serialize function
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2011-04-11 17:04:53


I want to do something like so:

template < typename Archive, typename T >
typename boost::enable_if<some_meta_check<T>>::type
   serialize(Archive & ar, T & rec, unsigned int const)
{
   ar & boost::serialization::base_object<T::type>(rec);
}

Unfortunately I run into trouble with ambiguous function call referring
to a different <Archive,T> version of serialize declared in the
serialization library.

Does anyone know of a workaround for this?


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