[C++-sig] Re: playing with pygame
David Abrahams
dave at boost-consulting.com
Wed Jun 4 14:01:21 CEST 2003
"Brett Calcott" <brett.calcott at paradise.net.nz> writes:
> But, this won't compile as:
> 'python_type' : invalid template argument for
> 'boost::python::lvalue_from_pytype', constant expression expected
>
> I think I understand the problem, but what is the solution?
lvalue_from_pytype is a simple template; take a look. You could write
an extract function which does the same thing, but which uses your
non-constant PyTypeObject* expression in place of the template
parameter, and register that just the way the lvalue_from_pytype
constructor does.
HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list