|
From: SourceForge.net <no...@so...> - 2007-10-12 17:18:02
|
Bugs item #1811808, was opened at 2007-10-11 14:00 Message generated for change (Comment added) made by qwertie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1811808&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: None Priority: 5 Private: No Submitted By: David Piepgrass (qwertie) Assigned to: William Fulton (wsfulton) Summary: Specific typemap is not applied to static member functions Initial Comment: If you use a specifically named typemap, it does not apply to return values of static member functions. In the following example, the typemap applies to Bar(bool) but not Bar(int). %typemap(ctype) int Bar "!!FOOTBALL!!"; %typemap(out) int Bar "!!FOOTBALL!!"; struct Foo { static int Bar(int a); int Bar(bool b); }; ---------------------------------------------------------------------- >Comment By: David Piepgrass (qwertie) Date: 2007-10-12 11:18 Message: Logged In: YES user_id=171344 Originator: YES I see no reason to close this issue. Just because a workaround exists (thanks for the tip), doesn't mean it's not a bug. ---------------------------------------------------------------------- Comment By: William Fulton (wsfulton) Date: 2007-10-11 15:12 Message: Logged In: YES user_id=242951 Originator: NO use the class name for static member functions like so: %typemap(ctype) int Foo::Bar "!!FOOTBALL!!"; %typemap(out) int Foo::Bar "!!FOOTBALL!!"; A bit quirky, sorry! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1811808&group_id=1645 |