On Mon, Jun 30, 2008 at 3:11 PM, Gustavo Carneiro <gjc...@gm...> wrote:
> I don't actually _need_ to remove consts from typedefs, only from the outer
> type.
I am not sure you are right. Consider next use case:
struct item_t{};
typedef const item_t c_item_t;
struct value_t{
c_item_t v;
};
Obviously, in this case you have to find out whether the "v" is const
or not, and generate different code.
I guess you are talking about some specific use case, which is not this.
> Anyway, I copy-pasted those functions into pybindgen and patched them to do
> what I need, so all is fine now.
:-(. I will see what I can do.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|