boost Python signatures


Somebody added a method to our C++ infrastructure with 16 parameters :(, which caused the following Visual C++ compilation error:

error C2780: ‘boost::mpl::vector10 boost::python::detail::get_signature(RT (__thiscall ClassT::* )(T0,T1,T2,T3,T4,T5,T6,T7) volatile const)’ : expects 1 arguments – 2 provided
c:\boost\include\boost\python\signature.hpp(146) : see declaration of ‘boost::python::detail::get_signature’

If you look in boost\include\boost\python\detail\preprocessor.hpp you will see the following declaration that defines the maxiumum number of parameters that def can handle:

# define BOOST_PYTHON_MAX_ARITY 15

About these ads

~ by mdavey on February 16, 2006.

4 Responses to “boost Python signatures”

  1. just test soft-a :))))

  2. Hi Guys! What Your Blog Powered By? Keep up the great work!

  3. Looks great! I found lots of intresting things here. Please more updates.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 640 other followers

%d bloggers like this: