Re: [C++-sig] Boost::Python patch for decorated class method
Nobody wants to fix this? -----Original Message----- From: Richard Berg [mailto:richardb@avisynth.org] Sent: Thursday, October 26, 2006 1:28 AM To: c++-sig@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@avisynth.org] Sent: Sunday, October 15, 2006 21:40 To: boost@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
"Richard Berg" <richardb@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@avisynth.org] Sent: Thursday, October 26, 2006 1:28 AM To: c++-sig@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@avisynth.org] Sent: Sunday, October 15, 2006 21:40 To: boost@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
participants (2)
-
David Abrahams -
Richard Berg