forked from boostorg/bind
Add apply_test2.cpp
This commit is contained in:
@ -80,3 +80,4 @@ run protect_cpp20_test.cpp ;
|
||||
run bind_noexcept_mf2_test.cpp ;
|
||||
run std_placeholders_test.cpp ;
|
||||
run apply_test.cpp ;
|
||||
run apply_test2.cpp ;
|
||||
|
15
test/apply_test2.cpp
Normal file
15
test/apply_test2.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2021 Peter Dimov
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/bind/apply.hpp>
|
||||
#include <boost/core/lightweight_test_trait.hpp>
|
||||
#include <boost/core/is_same.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_TRAIT_TRUE((boost::core::is_same<void, boost::apply<void>::result_type>));
|
||||
BOOST_TEST_TRAIT_TRUE((boost::core::is_same<int&, boost::apply<int&>::result_type>));
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
Reference in New Issue
Block a user