From: Hartmut S. <ha...@gm...> - 2006-08-23 05:07:50
|
Hi, I currently try to understand how I can reduce typedefs to the minimum. I read something on the mailinglist and checked the test-suite for something similar. The only thing close to my problem seems typedef_scope, which also shows the same undesired behaviour if I extend it to my case. Following C++ class: class A { public: typedef float value_type; void getMember(value_type& member) {member = m_member;}; value_type m_member; }; With python bindings (didn't check the others) I get a type error. It expects A::value_type. Any easy way to reduce the type again to the actual float? Do I need typemaps here, and if yes how would I deal with that? Cheers, Hartmut -- technotecture labs, technotecture.com |