|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-03-29 19:07:24
Hi,
Is it possible to enable serialization solely for a heirarchy of
objects? I was thinking something like:
template<typename Derived>
struct implementation_level<Derived,
typename
::boost::enable_if<::boost::is_base_of<Base,Derived> >::type>
{
typedef mpl::integral_c_tag tag;
typedef mpl::int_< ::boost::serialization::object_serializable > type;
BOOST_STATIC_CONSTANT(int,value = implementation_level::type::value );
};
But that requires implementation_level to be patched. Maybe there is
another obvious way that I am missing.
Thanks,
Sohail
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