epoc32/include/stdapis/boost/mpl/aux_/has_key_impl.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/mpl/aux_/has_key_impl.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/has_key_impl.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,9 +1,9 @@
     1.4  
     1.5 -#ifndef BOOST_MPL_SET_AUX_HAS_KEY_IMPL_HPP_INCLUDED
     1.6 -#define BOOST_MPL_SET_AUX_HAS_KEY_IMPL_HPP_INCLUDED
     1.7 +#ifndef BOOST_MPL_AUX_HAS_KEY_IMPL_HPP_INCLUDED
     1.8 +#define BOOST_MPL_AUX_HAS_KEY_IMPL_HPP_INCLUDED
     1.9  
    1.10 -// Copyright Aleksey Gurtovoy 2003-2004
    1.11 -// Copyright David Abrahams 2003-2004
    1.12 +// Copyright Aleksey Gurtovoy 2002-2004
    1.13 +// Copyright David Abrahams 2003
    1.14  //
    1.15  // Distributed under the Boost Software License, Version 1.0. 
    1.16  // (See accompanying file LICENSE_1_0.txt or copy at 
    1.17 @@ -11,50 +11,24 @@
    1.18  //
    1.19  // See http://www.boost.org/libs/mpl for documentation.
    1.20  
    1.21 -// $Source: /cvsroot/boost/boost/boost/mpl/set/aux_/has_key_impl.hpp,v $
    1.22 -// $Date: 2004/10/13 18:23:37 $
    1.23 -// $Revision: 1.7 $
    1.24 +// $Source: /cvsroot/boost/boost/boost/mpl/aux_/has_key_impl.hpp,v $
    1.25 +// $Date: 2004/09/02 15:40:43 $
    1.26 +// $Revision: 1.3 $
    1.27  
    1.28 -#include <boost/mpl/set/aux_/tag.hpp>
    1.29  #include <boost/mpl/has_key_fwd.hpp>
    1.30 -#include <boost/mpl/bool.hpp>
    1.31 -#include <boost/mpl/aux_/overload_names.hpp>
    1.32 -#include <boost/mpl/aux_/static_cast.hpp>
    1.33 -#include <boost/mpl/aux_/yes_no.hpp>
    1.34 -#include <boost/mpl/aux_/type_wrapper.hpp>
    1.35 -#include <boost/mpl/aux_/config/workaround.hpp>
    1.36 -#include <boost/mpl/aux_/config/static_constant.hpp>
    1.37 +#include <boost/mpl/aux_/traits_lambda_spec.hpp>
    1.38  
    1.39  namespace boost { namespace mpl {
    1.40  
    1.41 -template<>
    1.42 -struct has_key_impl< aux::set_tag >
    1.43 +// no default implementation; the definition is needed to make MSVC happy 
    1.44 +
    1.45 +template< typename Tag > struct has_key_impl
    1.46  {
    1.47 -    template< typename Set, typename T > struct apply
    1.48 -#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) \
    1.49 -    || BOOST_WORKAROUND(__EDG_VERSION__, <= 245)
    1.50 -    {
    1.51 -        BOOST_STATIC_CONSTANT(bool, value = 
    1.52 -              ( sizeof( BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(
    1.53 -                    Set
    1.54 -                  , BOOST_MPL_AUX_STATIC_CAST(aux::type_wrapper<T>*, 0)
    1.55 -                  ) ) == sizeof(aux::no_tag) )
    1.56 -            );
    1.57 +    template< typename AssociativeSequence, typename Key > struct apply;
    1.58 +};
    1.59  
    1.60 -        typedef bool_<value> type;
    1.61 -
    1.62 -#else // ISO98 C++
    1.63 -        : bool_< 
    1.64 -              ( sizeof( BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(
    1.65 -                    Set
    1.66 -                  , BOOST_MPL_AUX_STATIC_CAST(aux::type_wrapper<T>*, 0)
    1.67 -                  ) ) == sizeof(aux::no_tag) )
    1.68 -            >
    1.69 -    {
    1.70 -#endif
    1.71 -    };
    1.72 -};
    1.73 +BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(2,has_key_impl)
    1.74  
    1.75  }}
    1.76  
    1.77 -#endif // BOOST_MPL_SET_AUX_HAS_KEY_IMPL_HPP_INCLUDED
    1.78 +#endif // BOOST_MPL_AUX_HAS_KEY_IMPL_HPP_INCLUDED