mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 12:07:36 +02:00
Remove detail metafunctions to simplify template
This commit is contained in:
@ -8,7 +8,6 @@
|
|||||||
#define FUSION_CATEGORY_OF_07202005_0308
|
#define FUSION_CATEGORY_OF_07202005_0308
|
||||||
|
|
||||||
#include <boost/fusion/support/config.hpp>
|
#include <boost/fusion/support/config.hpp>
|
||||||
#include <boost/fusion/support/detail/category_of.hpp>
|
|
||||||
#include <boost/fusion/support/tag_of.hpp>
|
#include <boost/fusion/support/tag_of.hpp>
|
||||||
#include <boost/type_traits/is_base_of.hpp>
|
#include <boost/type_traits/is_base_of.hpp>
|
||||||
|
|
||||||
@ -44,7 +43,10 @@ namespace boost { namespace fusion
|
|||||||
struct category_of_impl
|
struct category_of_impl
|
||||||
{
|
{
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct apply : detail::fusion_category_of<T> {};
|
struct apply
|
||||||
|
{
|
||||||
|
typedef typename T::category type;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
/*=============================================================================
|
|
||||||
Copyright (c) 2001-2011 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(FUSION_CATEGORY_OF_07212005_1025)
|
|
||||||
#define FUSION_CATEGORY_OF_07212005_1025
|
|
||||||
|
|
||||||
namespace boost { namespace fusion { namespace detail
|
|
||||||
{
|
|
||||||
template <typename T>
|
|
||||||
struct fusion_category_of
|
|
||||||
{
|
|
||||||
typedef typename T::category type;
|
|
||||||
};
|
|
||||||
}}}
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,19 +0,0 @@
|
|||||||
/*=============================================================================
|
|
||||||
Copyright (c) 2001-2011 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(FUSION_IS_VIEW_03202006_0018)
|
|
||||||
#define FUSION_IS_VIEW_03202006_0018
|
|
||||||
|
|
||||||
namespace boost { namespace fusion { namespace detail
|
|
||||||
{
|
|
||||||
template <typename T>
|
|
||||||
struct fusion_is_view
|
|
||||||
{
|
|
||||||
typedef typename T::is_view type;
|
|
||||||
};
|
|
||||||
}}}
|
|
||||||
|
|
||||||
#endif
|
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
#include <boost/fusion/support/config.hpp>
|
#include <boost/fusion/support/config.hpp>
|
||||||
#include <boost/mpl/bool.hpp>
|
#include <boost/mpl/bool.hpp>
|
||||||
#include <boost/fusion/support/detail/is_view.hpp>
|
|
||||||
#include <boost/fusion/support/tag_of.hpp>
|
#include <boost/fusion/support/tag_of.hpp>
|
||||||
|
|
||||||
namespace boost { namespace fusion
|
namespace boost { namespace fusion
|
||||||
@ -28,8 +27,9 @@ namespace boost { namespace fusion
|
|||||||
{
|
{
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct apply
|
struct apply
|
||||||
: detail::fusion_is_view<T>
|
{
|
||||||
{};
|
typedef typename T::is_view type;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
Reference in New Issue
Block a user