Does a templated constructor (such as the following) override the implicit copy constructor?
template
struct Foo
{
T data;
// ...
Does a templated constructor (such as the following) override the implicit copy constructor?
No. The copy constructor is still implicitly declared, and is chosen in preference to the template.
Is there any way around this without explicitly defining a copy constructor?
No. If you don't want the implicit copy constructor, then you'll have to define one yourself.