diff --git a/test/mp_fold.cpp b/test/mp_fold.cpp index 5c84ede..ddc711d 100644 --- a/test/mp_fold.cpp +++ b/test/mp_fold.cpp @@ -1,11 +1,6 @@ - -// Copyright 2015 Peter Dimov. -// +// Copyright 2015-2025 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 - +// https://www.boost.org/LICENSE_1_0.txt #include #include @@ -13,6 +8,7 @@ #include #include #include +#include struct X1 {}; struct X2 {}; @@ -69,6 +65,10 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same, void, F>, F, X2>, X3>, X4>>)); } + { + BOOST_TEST_TRAIT_TRUE((std::is_same, void, F>, F, X2>>)); + } + using boost::mp11::mp_push_back; { diff --git a/test/mp_fold_q.cpp b/test/mp_fold_q.cpp index 475cf08..340a06a 100644 --- a/test/mp_fold_q.cpp +++ b/test/mp_fold_q.cpp @@ -1,11 +1,6 @@ - -// Copyright 2015, 2017 Peter Dimov. -// +// Copyright 2015-2025 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 - +// https://www.boost.org/LICENSE_1_0.txt #include #include @@ -14,6 +9,7 @@ #include #include #include +#include struct X1 {}; struct X2 {}; @@ -46,6 +42,10 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same, void, Q>, F, X2>, X3>, X4>>)); } + { + BOOST_TEST_TRAIT_TRUE((std::is_same, void, Q>, F, X2>>)); + } + using boost::mp11::mp_push_back; { diff --git a/test/mp_reverse_fold.cpp b/test/mp_reverse_fold.cpp index 75c3089..a8ab672 100644 --- a/test/mp_reverse_fold.cpp +++ b/test/mp_reverse_fold.cpp @@ -1,11 +1,6 @@ - -// Copyright 2015-2017 Peter Dimov. -// +// Copyright 2015-2025 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 - +// https://www.boost.org/LICENSE_1_0.txt #include #include @@ -13,6 +8,7 @@ #include #include #include +#include struct X1 {}; struct X2 {}; @@ -50,6 +46,10 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same, void, F>, F>>>>)); } + { + BOOST_TEST_TRAIT_TRUE((std::is_same, void, F>, F>>)); + } + { BOOST_TEST_TRAIT_TRUE((std::is_same, mp_list<>, rev_push_back>, mp_list>)); } diff --git a/test/mp_reverse_fold_q.cpp b/test/mp_reverse_fold_q.cpp index 09071a8..74697aa 100644 --- a/test/mp_reverse_fold_q.cpp +++ b/test/mp_reverse_fold_q.cpp @@ -1,11 +1,6 @@ - -// Copyright 2015-2017 Peter Dimov. -// +// Copyright 2015-2017, 2025 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 - +// https://www.boost.org/LICENSE_1_0.txt #include #include @@ -14,6 +9,7 @@ #include #include #include +#include struct X1 {}; struct X2 {}; @@ -46,6 +42,10 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same, void, Q>, F>>>>)); } + { + BOOST_TEST_TRAIT_TRUE((std::is_same, void, Q>, F>>)); + } + using boost::mp11::mp_bind; using boost::mp11::_1; using boost::mp11::_2;