如何在gdb中检查boost :: ptr_deque <std :: string>?

时间:2016-04-13 06:41:26

标签: c++ boost stl gdb

我有关于字符串的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并遍历所有元素?

1 个答案:

答案 0 :(得分:0)

您尝试使用的用户定义命令DECLARE @tempvarA INT = 0 UPDATE Table1 SET @tempvarA = 1 + intColumn UPDATE Table1 SET columnA = @tempvarA 旨在与pdequeue容器一起使用。事实上,这是在你正在使用的std::deque中记录的 - 我建议其他人不要使用dotfiles而不清楚他们的工作。

相关问题