How can I read the data in the vec class? For example I use the DDD/GDB in linux. I can only read the the vec datasize.
If I cannot read the data in a vec factory, it's very hard to debug the code. Thanks
There is a private member "_data()" which returns a pointer to the internal structure. "p v._data()[n]" should work.
You can also use user-defined GDB macros, see: https://sourceforge.net/forum/forum.php?thread_id=1948334&forum_id=115655
Log in to post a comment.
How can I read the data in the vec class?
For example I use the DDD/GDB in linux.
I can only read the the vec datasize.
If I cannot read the data in a vec factory, it's very hard to
debug the code.
Thanks
There is a private member "_data()" which returns a pointer to the internal structure.
"p v._data()[n]" should work.
You can also use user-defined GDB macros, see:
https://sourceforge.net/forum/forum.php?thread_id=1948334&forum_id=115655