I have the following code:
template <class B, class A>
class C {
A m_a;
public:
explicit C(A a) : m_a(a) {}
};
int main() {
C<int>(16);
return 0;
}
that can not be compiled. My purpose is to automatically deduce class A using the constructor parameter but use manually mentioned class B. Is it possible?