On 5/30/06, Roman Yakovenko <rom...@gm...> wrote:
> On 5/30/06, Lakin Wecker <lak...@gm...> wrote:
> > I haven't tried your fix with SVN, I am going to do that right now.
> > But I had just written this letter, so I'll send it to the list
> > anyways. But stay tuned for an update on this situation as well.
> >
> > Now, I'm getting this error:
> >
> > TypeError: No to_python (by-value) converter found for C++ type: Ogre::Vector3
Solved.
Error description:
struct Color{
static const Color red;
...
void do_smth( const Color& other = red );
//The error was raised from the line that register this function,
//because boost.python tries to create an python object from "red"
//but Color class is not registered.
}
Solution
mb = module_builder_t( ... )
mb.class_( 'Color' ).always_expose_using_scope = True
This will fix the problem. In future py++ will find this situation and
will generate
proper code.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|