[C++-sig] Re: missing boost::ref in pyste generated code?

Nicodemus nicodemus at globalite.com.br
Wed Jun 4 04:58:15 CEST 2003

Giulio Eulisse wrote:

>>>>How about something like this:
>>>>C = Class('C', 'C.h')
>>>Don't you need control on an argument-by-argument basis?
>>I don't know, I thought by method would be sufficient. Giulio?
>In my case, control by method would be probably sufficient, as we should 
>have control on the all the object passed(actually I would suggest to add a 
>"by_ref(C)" method), but I agree that argument-by-argument would be a more 
>correct approach.

Ok, how about this:

C = Class(...)
by_ref(C.foo[0], C.foo[1])  # first and second argument passed using 
by_ref(C.bar[2])            # third argument by ref

More information about the Cplusplus-sig mailing list