forked from boostorg/fusion
Patches for Codegear C++ Builder 2009
[SVN r48981]
This commit is contained in:
commit
d79c716271
905 files changed
+60388
-2803
No files matched your search
@@ -25,6 +25,24 @@ namespace boost { namespace fusion { namespace traits
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct deduce<T const>
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct deduce<T volatile>
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct deduce<T const volatile>
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
// Keep references on mutable LValues
|
||||
|
||||
template <typename T>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2007 Tobias Schwinger
|
||||
|
||||
Use modification and distribution are subject to the Boost Software
|
||||
|
||||
Use modification and distribution are subject to 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).
|
||||
==============================================================================*/
|
||||
@@ -10,9 +10,9 @@
|
||||
#define BOOST_FUSION_SUPPORT_DEDUCE_SEQUENCE_HPP_INCLUDED
|
||||
|
||||
#include <boost/fusion/support/deduce.hpp>
|
||||
#include <boost/fusion/sequence/conversion/as_vector.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/mpl.hpp>
|
||||
#include <boost/mpl/transform.hpp>
|
||||
#include <boost/fusion/container/vector/convert.hpp>
|
||||
#include <boost/fusion/view/transform_view.hpp>
|
||||
|
||||
|
||||
namespace boost { namespace fusion { namespace traits
|
||||
{
|
||||
@@ -22,19 +22,20 @@ namespace boost { namespace fusion { namespace traits
|
||||
{
|
||||
struct deducer
|
||||
{
|
||||
template <typename T>
|
||||
struct apply
|
||||
template <typename Sig>
|
||||
struct result;
|
||||
|
||||
template <class Self, typename T>
|
||||
struct result< Self(T) >
|
||||
: fusion::traits::deduce<T>
|
||||
{ };
|
||||
};
|
||||
}
|
||||
|
||||
// We cannot use fusion::transform_view here as result_of looses cv qualifiers
|
||||
// on built in types
|
||||
template <class Sequence>
|
||||
struct deduce_sequence
|
||||
: result_of::as_vector<
|
||||
typename mpl::transform<Sequence, detail::deducer>::type>
|
||||
fusion::transform_view<Sequence, detail::deducer> >
|
||||
{ };
|
||||
|
||||
}}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 1999-2003 Jaakko Järvi
|
||||
Copyright (c) 1999-2003 Jaakko Jarvi
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
|
||||
Executable → Regular
File mode changed.
@@ -1,14 +1,12 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_ITERATOR_BASE_05042005_1008)
|
||||
#define FUSION_ITERATOR_BASE_05042005_1008
|
||||
|
||||
#include <boost/fusion/support/detail/compiler_config.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
struct iterator_root {};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
Copyright (c) 2007 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_SEQUENCE_BASE_04182005_0737)
|
||||
#define FUSION_SEQUENCE_BASE_04182005_0737
|
||||
|
||||
#include <boost/fusion/support/detail/compiler_config.hpp>
|
||||
#include <boost/mpl/begin_end_fwd.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
@@ -37,7 +36,7 @@ namespace boost { namespace fusion
|
||||
namespace boost { namespace mpl
|
||||
{
|
||||
// Deliberately break mpl::begin, so it doesn't lie that a Fusion sequence
|
||||
// is not an MPL sequence by returning mpl::void_.
|
||||
// is not an MPL sequence by returning mpl::void_.
|
||||
// In other words: Fusion Sequences are always MPL Sequences, but they can
|
||||
// be incompletely defined.
|
||||
template<> struct begin_impl< boost::fusion::fusion_sequence_tag >;
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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_TAG_OF_09232005_0845)
|
||||
#define FUSION_TAG_OF_09232005_0845
|
||||
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/type_traits/remove_const.hpp>
|
||||
#include <boost/fusion/support/tag_of_fwd.hpp>
|
||||
#include <boost/fusion/support/detail/is_mpl_sequence.hpp>
|
||||
#include <boost/mpl/has_xxx.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/mpl/identity.hpp>
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <boost/mpl/bool.hpp>
|
||||
#include <boost/mpl/if.hpp>
|
||||
#include <utility>
|
||||
#include <boost/config/no_tr1/utility.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@@ -26,13 +26,13 @@ namespace boost
|
||||
namespace tuples
|
||||
{
|
||||
struct null_type;
|
||||
|
||||
|
||||
template <
|
||||
class T0, class T1, class T2, class T3, class T4,
|
||||
class T0, class T1, class T2, class T3, class T4,
|
||||
class T5, class T6, class T7, class T8, class T9
|
||||
>
|
||||
class tuple;
|
||||
|
||||
|
||||
template <class Head, class Tail>
|
||||
struct cons;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ namespace boost { namespace fusion
|
||||
{};
|
||||
|
||||
template <
|
||||
class T0, class T1, class T2, class T3, class T4,
|
||||
class T0, class T1, class T2, class T3, class T4,
|
||||
class T5, class T6, class T7, class T8, class T9
|
||||
>
|
||||
struct is_specialized<tuples::tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> >
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
Copyright (c) 2005-2006 Dan Marsden
|
||||
|
||||
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(BOOST_FUSION_TAG_OF_FWD_31122005_1445)
|
||||
#define BOOST_FUSION_TAG_OF_FWD_31122005_1445
|
||||
|
||||
namespace boost { namespace fusion {
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
namespace traits
|
||||
{
|
||||
template<typename T, typename Active = void>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
|
||||
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(BOOST_FUSION_SUPPORT_VOID_20070706_2125)
|
||||
#define BOOST_FUSION_SUPPORT_VOID_20070706_2125
|
||||
|
||||
namespace boost { namespace fusion {
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
struct void_ {};
|
||||
}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user