|
Boost : |
From: John (john_at_[hidden])
Date: 2003-06-16 10:40:49
Hi,
While reading The Boost C++ Metaprogramming Library (http://www.boost.org/libs/mpl/doc/paper/mpl_paper.html),
at section 2.2.1
template< typename T1, typename T2 >
struct derive
{
struct type : N1, N2 {};
};
should be:
template< typename T1, typename T2 >
struct derive
{
struct type : T1, T2 {};
};
------------------------------
at section 2.2.2,
I think:
// returns F(T1,F(T2,T3))
template<
template<typename> class F
, typename T1
, typename T2
, typename T3
>
struct apply_twice
{
typedef typename F<
T1
, typename F<T2,T3>::type
>::type type;
};
should be:
template<
template<typename, typename> class F
.. etc.
Same for compose_self below.
---------------------
Best,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk