$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?