mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-04 07:49:20 +01:00
Rename mp_invoke to mp_invoke_q
This commit is contained in:
@@ -16,7 +16,7 @@ int main()
|
||||
{
|
||||
using boost::mp11::mp_identity;
|
||||
using boost::mp11::mp_quote_trait;
|
||||
using boost::mp11::mp_invoke;
|
||||
using boost::mp11::mp_invoke_q;
|
||||
|
||||
{
|
||||
using Q = mp_quote_trait<mp_identity>;
|
||||
@@ -24,8 +24,8 @@ int main()
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<Q::fn<void>, void>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<Q::fn<int[]>, int[]>));
|
||||
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, void>, void>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, int[]>, int[]>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, void>, void>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, int[]>, int[]>));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -34,8 +34,8 @@ int main()
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<Q::fn<void>, void*>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<Q::fn<int[]>, int(*)[]>));
|
||||
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, void>, void*>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, int[]>, int(*)[]>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, void>, void*>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, int[]>, int(*)[]>));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -48,8 +48,8 @@ int main()
|
||||
|
||||
// g++ 4.7, 4.8 have difficulties with preserving top-level const
|
||||
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, void>, void const>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q, int[]>, int const[]>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, void>, void const>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke_q<Q, int[]>, int const[]>));
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user