X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=boost%2Ffusion%2Fsupport%2Ftag_of.hpp;fp=boost%2Ffusion%2Fsupport%2Ftag_of.hpp;h=a3fef3ba209e0d05b7a3f87b658aeaf75f52e071;hp=cba060672bf0b2583725aa8d79339a9917e03be6;hb=2d71eb92104693ca9baa5a2e1c23eeca776d8fd3;hpb=da57529b92adbb7ae74a89861cb39fb35ac7c62d diff --git a/boost/fusion/support/tag_of.hpp b/boost/fusion/support/tag_of.hpp index cba0606..a3fef3b 100644 --- a/boost/fusion/support/tag_of.hpp +++ b/boost/fusion/support/tag_of.hpp @@ -1,5 +1,5 @@ /*============================================================================= - Copyright (c) 2001-2006 Joel de Guzman + 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) @@ -46,24 +46,31 @@ namespace boost { namespace fusion namespace detail { BOOST_MPL_HAS_XXX_TRAIT_DEF(fusion_tag) - } - namespace traits - { template - struct tag_of - : mpl::if_< fusion::detail::is_mpl_sequence, + struct tag_of_impl + : mpl::if_, mpl::identity, mpl::identity >::type {}; template - struct tag_of >::type> + struct tag_of_impl< + Sequence + , typename boost::enable_if >::type> { typedef typename Sequence::fusion_tag type; }; } + namespace traits + { + template + struct tag_of + : boost::fusion::detail::tag_of_impl + {}; + } + namespace detail { template