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

David Abrahams dave at boost-consulting.com
Sat Nov 4 22:21:25 CET 2006


"Richard Berg" <richardb at avisynth.org> writes:

> Nobody wants to fix this?

Of course, it's just a matter of finding time.  If you can submit a
complete patch with docs (if any are needed) and tests, of course, it
would be easier.

> -----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

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list