1
0
forked from boostorg/bind

Add apply_test2.cpp

This commit is contained in:
Peter Dimov
2021-03-06 18:42:13 +02:00
parent ee25007a9f
commit bb50844171
2 changed files with 16 additions and 0 deletions

View File

@ -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
View 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();
}