List:MySQL++« Previous MessageNext Message »
From:Paul Date:January 5 2006 10:47pm
Subject:Re: subscript_iterator -> operator.
View as plain text  
Check, there are techniques to work around this problem by 
returning a small proxy-class or something like that.

Warren Young wrote:
> 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