Prev Next | Back Along | Up Home

Sequence traits protocol

Sequence algorithms' traits protocol has been changed to that of metafunction classes:

Before Now
name_traits<Tag>::algorithm<...>::type name_impl<Tag>::apply<...>::type

Correspondingly, if your code implemented a custom sequence, it needs to be adjusted according to the above table; for example:

Before Now
template<> struct begin_traits<my_tag>
{
    template< typename S > struct algorithm
    {
        typedef ... type;
    };
};
template<> struct begin_impl<my_tag>
{
    template< typename S > struct apply
    {
        typedef ... type;
    };
};
Prev Next | Back Along | Up Home