mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-14 12:56:38 +02:00
mpl::sequence_tag specialization for adapted types
[SVN r58396]
This commit is contained in:
@ -15,8 +15,12 @@
|
||||
#include <boost/fusion/support/is_sequence.hpp>
|
||||
#include <boost/fusion/support/is_view.hpp>
|
||||
#include <boost/fusion/iterator.hpp>
|
||||
#include <boost/fusion/mpl.hpp>
|
||||
|
||||
#include <boost/mpl/is_sequence.hpp>
|
||||
#include <boost/mpl/front.hpp>
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -37,5 +41,8 @@ int main()
|
||||
BOOST_TEST(size(arr) == 3);
|
||||
BOOST_TEST(distance(begin(arr), end(arr)) == 3);
|
||||
|
||||
BOOST_MPL_ASSERT((boost::mpl::is_sequence<array_type>));
|
||||
BOOST_MPL_ASSERT((boost::is_same<int, boost::mpl::front<array_type>::type>));
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user