diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/stdapis/boost/mpl/front.hpp --- a/epoc32/include/stdapis/boost/mpl/front.hpp Wed Mar 31 12:27:01 2010 +0100 +++ b/epoc32/include/stdapis/boost/mpl/front.hpp Wed Mar 31 12:33:34 2010 +0100 @@ -1,6 +1,6 @@ -#ifndef BOOST_MPL_LIST_AUX_FRONT_HPP_INCLUDED -#define BOOST_MPL_LIST_AUX_FRONT_HPP_INCLUDED +#ifndef BOOST_MPL_FRONT_HPP_INCLUDED +#define BOOST_MPL_FRONT_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // @@ -10,47 +10,30 @@ // // See http://www.boost.org/libs/mpl for documentation. -// $Source: /cvsroot/boost/boost/boost/mpl/vector/aux_/front.hpp,v $ -// $Date: 2004/09/02 15:41:19 $ +// $Source: /cvsroot/boost/boost/boost/mpl/front.hpp,v $ +// $Date: 2004/09/02 15:40:41 $ // $Revision: 1.4 $ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include namespace boost { namespace mpl { -#if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES) - -template<> -struct front_impl< aux::vector_tag > +template< + typename BOOST_MPL_AUX_NA_PARAM(Sequence) + > +struct front + : front_impl< typename sequence_tag::type > + ::template apply< Sequence > { - template< typename Vector > struct apply - : v_at - { - }; + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,front,(Sequence)) }; -#else - -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) - -template< BOOST_MPL_AUX_NTTP_DECL(long, n_) > -struct front_impl< aux::vector_tag > -{ - template< typename Vector > struct apply - { - typedef typename Vector::item0 type; - }; -}; - -#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - -#endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES +BOOST_MPL_AUX_NA_SPEC(1, front) }} -#endif // BOOST_MPL_LIST_AUX_FRONT_HPP_INCLUDED +#endif // BOOST_MPL_FRONT_HPP_INCLUDED