[pygccxml-development] [FT]input_t class - new vision.
Brought to you by:
mbaas,
roman_yakovenko
|
From: Roman Y. <rom...@gm...> - 2006-09-14 11:42:33
|
Hi. I am sure you know that I have small problem with custom smart pointer.
The problem introduced new use case to FT - input_t class.
Consider next use case
template<T>
smart_ptr_t{...};
struct Y{
const smart_ptr_t<X>& do_smth( const smart_ptr_t<Z>& z );
};
For some reason, I am not able to expose do_smth function as is, but rather
its trivial wrapper:
smart_ptr_t<X> do_smth( smart_ptr_t<Z> z );
Consider another problem that Allen had few weeks/month ago:
void do_smth( const class_with_private_destructor_t& x )
The solution was to remove const from the argument.
So how it is related to "input_t" ? "input_t" transformer removes
reference or pointer
from the argument type. In my case I want to modify the argument type
too, but I also
want to specify the new type. Same logic is applied on return type.
May be we can change\extend input_t class ( and rename it ) so it will
provide this
functionality?
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|