K
kalita
template<class T>
class A
{
template<class Y>
A(const A<Y> &)
{
// whatever
}
};
void f()
{
A<int> a1;
A<int> a2(a1); // here
}
Will my "templated copy constructor" be invoked?
cheers,
Marcin Kalicinski
class A
{
template<class Y>
A(const A<Y> &)
{
// whatever
}
};
void f()
{
A<int> a1;
A<int> a2(a1); // here
}
Will my "templated copy constructor" be invoked?
cheers,
Marcin Kalicinski