mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-17 14:22:13 +02:00
Add tests for #3225
This commit is contained in:
@ -16,6 +16,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>
|
||||
|
||||
@ -148,6 +149,17 @@ test()
|
||||
BOOST_STATIC_ASSERT(!traits::is_sequence<char>::value);
|
||||
}
|
||||
|
||||
{ // testing mpl::is_sequence
|
||||
|
||||
typedef map<pair<k1, int>, pair<k2, float>, pair<k3, double> > t1;
|
||||
typedef map<> t2;
|
||||
typedef map<pair<k1, 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 an algorithm
|
||||
|
Reference in New Issue
Block a user