Use BOOST_TEST_TRAIT_SAME

This commit is contained in:
Peter Dimov
2022-12-23 05:38:26 +02:00
parent 395235f3aa
commit 9a59a15e28
3 changed files with 5 additions and 7 deletions

View File

@@ -4,12 +4,11 @@
#include <boost/bind/apply.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/type_traits/is_same.hpp>
int main()
{
BOOST_TEST_TRAIT_TRUE((boost::is_same<void, boost::apply<void>::result_type>));
BOOST_TEST_TRAIT_TRUE((boost::is_same<int&, boost::apply<int&>::result_type>));
BOOST_TEST_TRAIT_SAME(void, boost::apply<void>::result_type);
BOOST_TEST_TRAIT_SAME(int&, boost::apply<int&>::result_type);
return boost::report_errors();
}