ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved