Menu

How can I read the vec data in debug mode

wavestar
2008-08-04
2012-09-15
  • wavestar

    wavestar - 2008-08-04

    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

     
    • Bogdan Cristea

      Bogdan Cristea - 2008-08-04

      There is a private member "_data()" which returns a pointer to the internal structure.
      "p v._data()[n]" should work.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.