【发布时间】:2013-12-17 14:26:25
【问题描述】:
在我的代码中有这样的内容:
shared_ptr<vector<unsigned int>> f =
make_shared<vector<unsigned int>>();
我怎样才能漂亮地打印我只能访问 shared_ptr 对象的向量
frame variable f
和
frame variable f.__ptr_->size()
call to a function 'std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >::size() const' that is not present in the target
收到此错误?
【问题讨论】:
标签: c++ debugging shared-ptr lldb