Re: %apply to all derived types

William S Fulton <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <CANGqftBWf3GzkdNQex0GhKkz4=taBV8E8TH1Q8-kAaED2M0hvw@mail.gmail.com>
On Fri, 14 Feb 2020 at 08:33, Rokas Kupstys via Swig-user <
[email protected]> wrote:

>
> Is it possible to %apply() a typemap to type T and all types that derive
> from T?
>
> I am wrapping a RefCounted base class with it's all derived types.
> Typemaps are required for RefCounted, all types that derive from it and
> all variations of SharedPtr<T> where T can be RefCounted or any type
> deriving from RefCounted. At the moment i am adding typemaps to every
> such type using a macro. I was hoping there is a better way. Is there?
>
>
I'm afraid not :(

William

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.