mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fix test in C++17 and up
This commit is contained in:
parent
c34cbb56ab
commit
78a4fbe129
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ BOOST_AUTO_TEST_CASE(function_pointer_is_functor)
|
||||||
is_not_functor(&f2);
|
is_not_functor(&f2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ptr_fun, bin1st is removed in C++17
|
||||||
|
#if MOCK_CXX_VERSION < 201703L
|
||||||
BOOST_AUTO_TEST_CASE(std_ptr_fun_is_functor)
|
BOOST_AUTO_TEST_CASE(std_ptr_fun_is_functor)
|
||||||
{
|
{
|
||||||
is_functor(std::ptr_fun(&f1));
|
is_functor(std::ptr_fun(&f1));
|
||||||
|
|
@ -77,6 +79,7 @@ BOOST_AUTO_TEST_CASE(std_bind_first_is_functor)
|
||||||
{
|
{
|
||||||
is_functor(std::bind1st(std::ptr_fun(&f2), ""));
|
is_functor(std::bind1st(std::ptr_fun(&f2), ""));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(bind_is_functor)
|
BOOST_AUTO_TEST_CASE(bind_is_functor)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue