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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to