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/sequence/misc.hpp | |
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/sequence/misc.hpp')
-rw-r--r-- | libs/fusion/test/sequence/misc.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/fusion/test/sequence/misc.hpp b/libs/fusion/test/sequence/misc.hpp index ecbe15494..c426bba8a 100644 --- a/libs/fusion/test/sequence/misc.hpp +++ b/libs/fusion/test/sequence/misc.hpp @@ -13,6 +13,7 @@ #include <boost/mpl/equal.hpp> #include <boost/mpl/int.hpp> #include <boost/mpl/integral_c.hpp> +#include <boost/mpl/is_sequence.hpp> #include <boost/type_traits/is_same.hpp> #include <string> @@ -175,6 +176,17 @@ test() BOOST_STATIC_ASSERT(!traits::is_sequence<char>::value); } + { // testing mpl::is_sequence + + typedef FUSION_SEQUENCE<int, float, double> t1; + typedef FUSION_SEQUENCE<> t2; + typedef FUSION_SEQUENCE<char> t3; + + BOOST_STATIC_ASSERT(boost::mpl::is_sequence<t1>::value); + BOOST_STATIC_ASSERT(boost::mpl::is_sequence<t2>::value); + BOOST_STATIC_ASSERT(boost::mpl::is_sequence<t3>::value); + } + { // testing mpl compatibility // test begin, end, next, prior, advance, size, deref, etc. |