Setting member of object inside stxxl::vector

  • Nobody/Anonymous


    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?


  • Johannes Singler

    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?


  • Nobody/Anonymous

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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks