|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61836 - trunk/boost/fusion/support
From: mr.chr.schmidt_at_[hidden]
Date: 2010-05-07 11:02:23
Author: cschmidt
Date: 2010-05-07 11:02:22 EDT (Fri, 07 May 2010)
New Revision: 61836
URL: http://svn.boost.org/trac/boost/changeset/61836
Log:
fusion::tag_of/fusion::detail::is_specialized should not complain for non-adapted std::pair/boost::array/...
Text files modified:
trunk/boost/fusion/support/tag_of.hpp | 37 +------------------------------------
1 files changed, 1 insertions(+), 36 deletions(-)
Modified: trunk/boost/fusion/support/tag_of.hpp
==============================================================================
--- trunk/boost/fusion/support/tag_of.hpp (original)
+++ trunk/boost/fusion/support/tag_of.hpp 2010-05-07 11:02:22 EDT (Fri, 07 May 2010)
@@ -46,39 +46,6 @@
namespace detail
{
BOOST_MPL_HAS_XXX_TRAIT_DEF(fusion_tag)
-
- template<typename Sequence>
- struct is_specialized
- : mpl::false_
- {};
-
- template <
- 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> >
- : mpl::true_
- {};
-
- template <class Head, class Tail>
- struct is_specialized<tuples::cons<Head, Tail> >
- : mpl::true_
- {};
-
- template <>
- struct is_specialized<tuples::null_type>
- : mpl::true_
- {};
-
- template <typename T, std::size_t N>
- struct is_specialized<boost::array<T, N> >
- : mpl::true_
- {};
-
- template<typename T1, typename T2>
- struct is_specialized<std::pair<T1, T2> >
- : mpl::true_
- {};
}
namespace traits
@@ -88,9 +55,7 @@
: mpl::if_< fusion::detail::is_mpl_sequence<Sequence>,
mpl::identity<mpl_sequence_tag>,
mpl::identity<non_fusion_tag> >::type
- {
- BOOST_MPL_ASSERT_NOT((fusion::detail::is_specialized<Sequence>));
- };
+ {};
template <typename Sequence>
struct tag_of<Sequence, typename boost::enable_if<detail::has_fusion_tag<Sequence> >::type>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk