diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/fusion/test/functional/make_unfused.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/fusion/test/functional/make_unfused.cpp')
-rw-r--r-- | libs/fusion/test/functional/make_unfused.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libs/fusion/test/functional/make_unfused.cpp b/libs/fusion/test/functional/make_unfused.cpp index 1e2869183..73be142b4 100644 --- a/libs/fusion/test/functional/make_unfused.cpp +++ b/libs/fusion/test/functional/make_unfused.cpp @@ -10,14 +10,15 @@ #include <boost/detail/lightweight_test.hpp> #include <boost/noncopyable.hpp> -#include <boost/blank.hpp> +#include <boost/mpl/empty_base.hpp> #include <boost/mpl/if.hpp> #include <boost/mpl/and.hpp> +#include <boost/mpl/not.hpp> #include <boost/mpl/bool.hpp> -#include <boost/mpl/identity.hpp> #include <boost/utility/result_of.hpp> +#include <boost/core/enable_if.hpp> #include <boost/fusion/sequence/intrinsic/empty.hpp> #include <boost/fusion/algorithm/iteration/fold.hpp> @@ -33,17 +34,18 @@ typedef mpl::true_ no_nullary_call; using boost::ref; using boost::cref; -template <class Base = boost::blank, class RemoveNullary = mpl::false_> +template <class Base = mpl::empty_base, class RemoveNullary = mpl::false_> struct test_func : Base { template <typename Sig> struct result; - template <class Self, class Seq> + template <class Self, class Seq> struct result< Self(Seq &) > - : mpl::if_< mpl::and_< boost::fusion::result_of::empty<Seq>, RemoveNullary >, - boost::blank, mpl::identity<long> >::type + : boost::enable_if< + mpl::not_<mpl::and_<boost::fusion::result_of::empty<Seq>, RemoveNullary> >, + long> { }; template <typename Seq> |