[C++-sig] Re: playing with pygame
by David Abrahams other posts by this author
Jun 4 2003 12:01PM messages near this date
[C++-sig] Re: playing with pygame
|
[C++-sig] Building Boost.Python on MingW(win98)
"Brett Calcott" <brett.calcott@[...].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
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Brett Calcott
David Abrahams
Brett Calcott
Brett Calcott
David Abrahams
David Abrahams
|