Setting member of object inside stxxl::vector

2011-03-22
2013-04-25
  • Hi,

    I iterate over an stxxl::vector and try to set member variables of some of the objects by derefencing the iterator, e.g. (it->object).indicator = true. This does not work and changes to the member get lost. Am I getting something wrong here?

    Thanks!

     
  • Do you use a const_iterator?  (But then, compilation should fail.)
    Does (*it).object.indicator = true work?
    Could you post the specification of your data type, please?

    Johannes

     
  • I was able to fix it and the bug was entirely unrelated to stxxl. Sorry for that!