|
Boost : |
From: Peter.Bienstman_at_[hidden]
Date: 2001-07-10 07:28:19
It does, thanks.
Anyway, the documentation still needs updating.
Peter
--- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
> Actually, I think this would be easier:
>
> this_module.add(boost::python::make_ref(TAB), "TAB");
>
> That works, doesn't it?
> -Dave
>
> ----- Original Message -----
> From: <Peter.Bienstman_at_r...>
> To: <boost_at_y...>
> Sent: Monday, July 09, 2001 10:01 AM
> Subject: [boost] Re: enums in boost.python documentation incorrect
>
>
> > Actually, after some experimenting and looking through the source
it
> > turns out that the correct way to add enums to modules is to use
> >
> > this_module.add(ref(boost::python::to_python(TAB)), "TAB");
> >
> > rather than
> >
> > this_module.add( boost::python::to_python(TAB) , "TAB");
> >
> > It would be very useful if the documentation were updated.
> >
> > Cheers,
> >
> > Peter Bienstman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk