mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added tests to ensure proper support for boost::result_of
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@552 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
e38a3ee8ec
commit
8aa007af3b
1 changed files with 11 additions and 0 deletions
|
|
@ -13,6 +13,8 @@
|
|||
#include <boost/test/auto_unit_test.hpp>
|
||||
#define BOOST_LIB_NAME boost_unit_test_framework
|
||||
#include <boost/config/auto_link.hpp>
|
||||
#include <boost/utility/result_of.hpp>
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
|
|
@ -21,6 +23,15 @@
|
|||
namespace
|
||||
{
|
||||
boost::function< void() > static_f;
|
||||
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same< void, boost::result_of< mock::detail::function< void() >() >::type > ));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same< int, boost::result_of< mock::detail::function< int() >() >::type > ));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same< void, boost::result_of< mock::detail::function< void( float ) >( float ) >::type > ));
|
||||
BOOST_MPL_ASSERT((
|
||||
boost::is_same< int, boost::result_of< mock::detail::function< int( float ) >( float ) >::type > ));
|
||||
}
|
||||
|
||||
// functor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue