diff --git a/test/Jamfile b/test/Jamfile index 7531c80..3036d94 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -191,6 +191,7 @@ run mp_bind_back.cpp ; # mpl run mpl.cpp : ; +run mpl_list.cpp : ; # version run version.cpp ; diff --git a/test/mpl_list.cpp b/test/mpl_list.cpp new file mode 100644 index 0000000..dfdb44e --- /dev/null +++ b/test/mpl_list.cpp @@ -0,0 +1,36 @@ + +// Copyright 2017, 2019 Peter Dimov. +// +// Distributed under the Boost Software License, Version 1.0. +// +// See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt + + +#include +#include + +#include +#include + +#include + +int main() +{ + namespace mpl = boost::mpl; + using namespace boost::mp11; + + using L1 = mp_list; + + BOOST_TEST_TRAIT_TRUE((std::is_same>::type, mp_at_c>)); + BOOST_TEST_TRAIT_TRUE((std::is_same>::type, mp_at_c>)); + BOOST_TEST_TRAIT_TRUE((std::is_same>::type, mp_at_c>)); + + BOOST_TEST_TRAIT_TRUE((std::is_same::type, mp_at_c>)); + BOOST_TEST_TRAIT_TRUE((std::is_same::type, mp_at_c>)); + BOOST_TEST_TRAIT_TRUE((std::is_same::type, mp_at_c>)); + + BOOST_TEST_EQ((mpl::size::type::value), mp_size::value); + + return boost::report_errors(); +}