|
Ublas : |
From: Server Levent Yilmaz (leventyilmaz_at_[hidden])
Date: 2007-01-03 18:50:20
On 1/3/07, Neal Becker <ndbecker2_at_[hidden]> wrote:
>
> Gunter Winkler wrote:
>
> > Neal Becker schrieb:
> >> template<class T>
> >> struct implementation_level<ublas::vector<T> >
> >> {
> >> typedef mpl::integral_c_tag tag;
> >> // typedef mpl::int_<primitive_type> type;
> >> typedef mpl::int_<object_serializable> type;
> >> BOOST_STATIC_CONSTANT(
> >> int,
> >> value = implementation_level::type::value
> >> );
> >> };
> >
> > Can you explain this construction? What does this mean for the
> > serialization?
> >
>
> Does this help?
> http://boost.org/libs/serialization/doc/traits.html#templates
But first make sure you got this down:
http://boost.org/libs/serialization/doc/traits.html#level
The whole thing is for (possibly minor) optimization. Given that ublas
containers have implementations that are fixed (and not version dependent)
you can do away with version tracking and related issues while serializing.
-- Server Levent Yilmaz Mechanical Engineering @ PITT