这是一个例子。我已尝试使用3-4种签名组合设置中断,但所有内容都被检测为未定义。
#include <iostream>
template <class T>
class C
{
public:
void f(){std::cout << "f()\n";}
};
int main()
{
C<int> c1;
C<int> c2(c1);
c2.f();
}
Both "b C::C(const C&)" and
"b C<int>::C(const C<int>&)" fail to break at implicitly declared copy constructor.