2009/9/22 Pertti Kellomäki <per...@tu...>:
> Hi Roman et al,
>
> This is related to my questions on Python c++sig list, but I
> thought this would be a more appropriate place.
You are right.
> It seems that function transformations do not apply to protected
> members. The attached files illustrate the problem: I apply
> an identical function transformation to a public member and
> to a protected member, but it only seems to affect the public
> member. Constness is removed from g's signature but not from
> h's signature.
This is an intentional behaviour. FT is a pretty complex feature and
it took a lot of time to implement it for almost all public functions
( except constructors ).
I am pretty sure, it is possible to implement the feature for
"restricted" functions too, but this is really a big(may be I should
use "long") project.
If you have only few such functions may be you should consider
creating the wrappers manually. If you have "write" access to the
source code, consider to add new protected functions, so you will not
have to use FT.
My estimation could be erroneous, but I definitely cant commit myself
to such task, sorry :-(.
If you want to try to implement the missing feature, I definitely will
help you.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|