[C++-sig] Re: return value policy for returning same python object...

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Sun Jun 8 23:50:03 CEST 2003


--- David Abrahams <dave at boost-consulting.com> wrote:
> David Abrahams <dave at boost-consulting.com> writes:
> >     const object
> >     do_iadd (back_reference<Y&> self, int other)
> >     {
> >        self.get() += Y_FromInt(other);
> >        return self.source();
> >     }

I always thought that returning a const temporary doesn't make sense. Do you
mean "const object&" above? Or is there something new for me to learn?
Ralf


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com




More information about the Cplusplus-sig mailing list