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/set.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/sequence/set.cpp')
-rw-r--r-- | libs/fusion/test/sequence/set.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/fusion/test/sequence/set.cpp b/libs/fusion/test/sequence/set.cpp index 1ea6ba241..cf97c100f 100644 --- a/libs/fusion/test/sequence/set.cpp +++ b/libs/fusion/test/sequence/set.cpp @@ -18,8 +18,10 @@ #include <boost/fusion/iterator/next.hpp> #include <boost/fusion/support/pair.hpp> #include <boost/fusion/support/category_of.hpp> +#include <boost/fusion/support/is_sequence.hpp> #include <boost/static_assert.hpp> #include <boost/mpl/assert.hpp> +#include <boost/mpl/is_sequence.hpp> #include <iostream> #include <string> @@ -78,6 +80,28 @@ main() BOOST_TEST(at_key<int>(make_set('X', 123)) == 123); } + { // testing is_sequence + + typedef set<int, float, double> t1; + typedef set<> t2; + typedef set<char> t3; + + BOOST_MPL_ASSERT((traits::is_sequence<t1>)); + BOOST_MPL_ASSERT((traits::is_sequence<t2>)); + BOOST_MPL_ASSERT((traits::is_sequence<t3>)); + } + + { // testing mpl::is_sequence + + typedef set<int, float, double> t1; + typedef set<> t2; + typedef set<char> t3; + + BOOST_MPL_ASSERT((boost::mpl::is_sequence<t1>)); + BOOST_MPL_ASSERT((boost::mpl::is_sequence<t2>)); + BOOST_MPL_ASSERT((boost::mpl::is_sequence<t3>)); + } + return boost::report_errors(); } |