Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-11-28 11:26:40


Hamish Mackenzie wrote:
> I think full specialization is broken in MPL too, does the following
> work?
>
> template< class T >
> class foo;
>
> template<>
> class foo< boost::mpl::type_list< int, float > >
> {
> };

What's the purpose of the above specialization?

>
> int main()
> {
> typdef boost::mpl::type_list< int > int_only;
> typdef boost::mpl::type_list< float > float_only;
>
> foo< boost::mpl::append< int_only, float_only >::sequence > x
> }
>

--
Aleksey

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk