Compiler can not deduce _t2
and reports this error:
could not deduce template argument for '_t2'
Any suggestions, without making any changes in main()
?
#include <tuple>
template <
typename _t1,
template <typename> typename _t2>
void test(
_t1 p1,
std::tuple<int, _t2> p2)
{
}
int main(int argc, char *argv[])
{
test(
1,
{
2,
'a'
});
return 0;
}