[C++-sig] Re: Problem with init<>
David Abrahams
dave at boost-consulting.com
Fri Oct 10 13:48:56 CEST 2003
Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:
> I want to export some classes that takes as constructor argument, a
> reference on an object (a non-const reference).
>
> The problem is that Boost.Python expect only constant reference.
Why do you say that?
> Is there a way to go around this limitation ?
There's no limitation that prevents the passing of non-const
references:
.def(init<foo&>())
works just fine.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list