[C++-sig] Boost::Python patch for decorated class method
Richard Berg
richardb at avisynth.org
Thu Oct 26 07:28:01 CEST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.hpp.patch
Type: application/octet-stream
Size: 2404 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20061026/5c63f042/attachment.obj>
More information about the Cplusplus-sig
mailing list