mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-05 16:19:20 +01:00
Add indirection in mp_quote to enable expansions of T... into a fixed parameter list
This commit is contained in:
@@ -35,6 +35,11 @@ struct Q4
|
||||
template<class T1, class... T> using fn = T1;
|
||||
};
|
||||
|
||||
struct Q5
|
||||
{
|
||||
template<class T1, class T2> using fn = T2;
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q1>, void>));
|
||||
@@ -52,5 +57,7 @@ int main()
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q4, int>, int>));
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q4, int[], char[]>, int[]>));
|
||||
|
||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_invoke<Q5, int, float>, float>));
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user