mirror of
https://github.com/boostorg/bind.git
synced 2026-03-06 14:05:28 +01:00
Use BOOST_TEST_TRAIT_SAME
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user