mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-04 15:59:19 +01:00
Make mp_append SFINAE-friendly; add test/mp_append_sf.cpp
This commit is contained in:
32
test/mp_append_sf.cpp
Normal file
32
test/mp_append_sf.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
// Copyright 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 <boost/mp11/list.hpp>
|
||||
#include <boost/mp11/utility.hpp>
|
||||
#include <boost/core/lightweight_test_trait.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
using boost::mp11::mp_append;
|
||||
using boost::mp11::mp_valid;
|
||||
using boost::mp11::mp_list;
|
||||
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void, void, void>));
|
||||
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, mp_list<>, void>));
|
||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, mp_list<>, mp_list<>, void>));
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in New Issue
Block a user