refactoring for v2.1

[SVN r40208]
This commit is contained in:
Joel de Guzman
2007-10-20 11:01:50 +00:00
parent 0f11e531ac
commit a77599ed49
21 changed files with 72 additions and 73 deletions

View File

@ -2,13 +2,12 @@
Copyright (c) 2005 Joel de Guzman
Copyright (c) 2006 Tobias Schwinger
Distributed under the Boost Software License, Version 1.0. (See accompanying
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#if !defined(FUSION_PAIR_07222005_1203)
#define FUSION_PAIR_07222005_1203
#include <boost/fusion/support/detail/compiler_config.hpp>
#include <boost/fusion/support/detail/access.hpp>
#include <boost/fusion/support/detail/as_fusion_element.hpp>
@ -23,7 +22,7 @@ namespace boost { namespace fusion
pair(typename detail::call_param<Second>::type val)
: second(val) {}
template <typename Second2>
pair(pair<First, Second2> const& rhs)
: second(rhs.second) {}
@ -45,7 +44,7 @@ namespace boost { namespace fusion
template<typename First, typename Second>
struct make_pair
{
typedef fusion::pair<First,
typedef fusion::pair<First,
typename detail::as_fusion_element<Second>::type> type;
};
@ -84,16 +83,16 @@ namespace boost { namespace fusion
is >> p.second;
return is;
}
template <typename First, typename SecondL, typename SecondR>
inline bool
inline bool
operator==(pair<First, SecondL> const& l, pair<First, SecondR> const& r)
{
return l.second == r.second;
}
template <typename First, typename SecondL, typename SecondR>
inline bool
inline bool
operator!=(pair<First, SecondL> const& l, pair<First, SecondR> const& r)
{
return l.second != r.second;