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
Re: [C++-sig] function with >15 args yields get_signature error
by Troy D. Straszheim other posts by this author
Oct 26 2009 2:31PM messages near this date
Re: [C++-sig] function with >15 args yields get_signature error | Re: [C++-sig] function with >15 args yields get_signature error
Matthew Scouten (TT) wrote:
>  Yeah. Find the guy who wrote a function with over 25 arguments. Bring
>  a baseball bat. Persuade him of his error.

+1.  "Clue-by-four" time.

>  -----Original Message----- From:
>  cplusplus-sig-bounces+matthew.scouten=tradingtechnologies.com@[...].org
>  [mailto:cplusplus-sig-bounces+matthew.scouten=tradingtechnologies.com@[...].org]
>  On Behalf Of Eilif Mueller Sent: Monday, October 26, 2009 3:59 PM To:
>  Development of Python/C++ integration Subject: Re: [C++-sig] function
>  with >15 args yields get_signature error
>  
>  Hi,
>  
>  Thanks!  -DBOOST_PYTHON_MAX_ARITY=34 did indeed help ... for simple
>  functions it did the trick, and it did increase my limit for member
>  functions, but only to 25.  For over 25 args for a member functions
>  of an exposed class I get the following compiler error:
>  
>  /usr/include/boost/python/detail/invoke.hpp:81: error: must use ‘.*’
>  or ‘->*’ to call pointer-to-member function in ‘f (...)’
>  

I believe this is because BOOST_PYTHON_MAX_ARITY doesn't have the 
ability to change the hardcoded limit of 25 parameters in 
boost/type_traits/detail/is_mem_fun_ptr_impl.hpp, which boost.python 
uses.  This is why I recommended that workaround.

-t
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@[...].org
http://mail.python.org/mailman/listinfo/cplusplus-sig
Thread:
Eilif Mueller
William Ladwig
Eilif Mueller
Matthew Scouten
Troy D. Straszheim
Renato Araujo
Troy D. Straszheim

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