是否有可能在gdb中中断模板化类的隐式声明方法?

时间:2017-04-01 13:37:16

标签: c++ templates gdb

这是一个例子。我已尝试使用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.    

0 个答案:

没有答案
相关问题