【发布时间】:2016-04-13 06:41:25
【问题描述】:
我有字符串的ptr_deque(即mydeque),我想用gdb检查它。
我尝试了以下事情,
pdequeue mydeque void* 1
但它给出了以下错误。
Type boost::ptr_deque<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::heap_clone_allocator, std::allocator<void*> > has no component named _M_impl.
如何在 gdb 中检查 boost::ptr_deque 并遍历所有元素?
【问题讨论】: