[C++-sig] Boost::Python patch for decorated class method

Richard Berg richardb at avisynth.org
Sat Nov 4 09:40:23 CET 2006


Nobody wants to fix this?

-----Original Message-----
From: Richard Berg [mailto:richardb at avisynth.org] 
Sent: Thursday, October 26, 2006 1:28 AM
To: c++-sig at python.org
Subject: RE: Boost::Python patch for decorated class method

Surprised there was no response from Boost.  Is this the right place to
submit boost::python bugs & patches?

-----Original Message-----
From: Richard Berg [mailto:richardb at avisynth.org] 
Sent: Sunday, October 15, 2006 21:40
To: boost at lists.boost.org
Subject: Boost::Python patch for decorated class method

I found that I could not compile any code that tried to export a class
method to Python if the method was "decorated" with a calling convention
like __cdecl (MSVC8 style).  Standalone functions work ok because the
compiler matches them against RT(*) while class methods were trying to match
against RT(ClassT::*).
 
I'm sure there's a concise way to make signature.hpp work with decorative
keywords generally, so I am *not* proposing you accept my patch.  I know
virtually nothing about template metaprogramming; my code is neither concise
nor general.  However, the patch does demonstrate the problem and solution.
 
Best,
-Richard





More information about the Cplusplus-sig mailing list