K
Kaba
Hmm.. Should this compile in C++11 (the compiler at Ideone does not)?
template <typename A, typename B>
class C {};
template <typename... TypeSet>
void f(const C<TypeSet...>& c) {}
int main()
{
C<int, int> c;
f(c);
return 0;
}
The idea is to save typing in case I'm not interested in the actual
template-arguments of C.
template <typename A, typename B>
class C {};
template <typename... TypeSet>
void f(const C<TypeSet...>& c) {}
int main()
{
C<int, int> c;
f(c);
return 0;
}
The idea is to save typing in case I'm not interested in the actual
template-arguments of C.