Menu

#201 slist iterator operator == and != could take rhs reference

5.2
open-fixed
5
2009-04-07
2009-01-12
No

Submitted on behaf of Chris Kingsley:
"In _slist.h at lines 116 an 119 where the operator== and operator!= are defined they take iterator objects instead of references to iterator objects. Not that I expect it to make production code run any faster, but it would make debugging nicer to have them take const references to the rhs value. This would save constructing and destructing the object, which is derived from other objects, and a whole lot of inline code."

Discussion

  • Petr Ovtchenkov

    Petr Ovtchenkov - 2009-04-07
    • milestone: 739077 --> 5.2
    • assigned_to: nobody --> complement
    • status: open --> open-fixed
     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2009-04-07

    Reasonable. Changes in master and STLport-5.2 branch.

     

Log in to post a comment.