List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 5 2006 3:01pm
Subject:Re: subscript_iterator -> operator.
View as plain text  
alan.alvarez@stripped wrote:
> Is there a specific reason why subscript_iterator doesn't have a ->
> operator?

 From the ChangeLog, v2.0.0:

     o Removed arrow operator (->) for iterator returned by Fields,
       Result and Row containers.  It was inherently buggy, because
       a correct arrow operator must return the address of an
       object, but the underlying element access functions in these
       classes (e.g. at()) return objects by value, of necessity.
       Therefore, this operator could only return the address of
       a temporary, which cannot be safely dereferenced.
subscript_iterator -> operator.alan.alvarez5 Jan
  • Re: subscript_iterator -> operator.Warren Young5 Jan
    • Re: subscript_iterator -> operator.Paul5 Jan
      • Re: subscript_iterator -> operator.Warren Young6 Jan
        • Re: subscript_iterator -> operator.Paul6 Jan
Re: subscript_iterator -> operator.Warren Young10 Jan
  • Re: subscript_iterator -> operator.Paul11 Jan
    • Re: subscript_iterator -> operator.Denis ERCHOFF11 Jan