1 // (C) Copyright Raffi Enficiaud 2019.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
8 #define BOOST_TEST_MODULE basic_smoke_test4
9 #include <boost/test/included/unit_test.hpp>
10 #include <boost/type_traits/is_same.hpp>
11 #include <boost/mpl/list.hpp>
13 template <class U, class V>
15 typedef typename boost::is_same<U, V>::type type;
18 typedef boost::mpl::list<
20 my_struct<int, float>,
21 my_struct<float, float>,
22 my_struct<char, float>
25 BOOST_AUTO_TEST_CASE_TEMPLATE(test, T, test_types)
27 BOOST_TEST((T::type::value));
30 BOOST_AUTO_TEST_SUITE(some_suite)
32 typedef boost::mpl::list<
33 my_struct<float, int>,
34 my_struct<int, float>,
35 my_struct<float, float>,
39 BOOST_AUTO_TEST_CASE_TEMPLATE(test, T, test_types2)
41 BOOST_TEST((T::type::value));
44 BOOST_AUTO_TEST_SUITE_END();