logo       

Re: overloaded template functions: msg#00087

programming.swig

Subject: Re: overloaded template functions


Hi there,

Let me make the question more clear. I have two overloaded template functions
like these:

template <class T>
int foo(const T);

template <class T>
int foo(const T, const bool);

I am using 1.3.17, which shall handle the overloaded functions. I do not
ignore either one, nor do I rename them. Since they are template functions, I
must instantiate both of them. I have these lines in the .i file, which
instantiate the first one:

%template(fooDBL) foo<double>;
%template(fooINT) foo<int>;

How could I instantiate the second one? Thanks for help.

Zhong


_____________________________________________________________
Get email for your site ---> http://www.everyone.net

_____________________________________________________________
Select your own custom email address for FREE! Get you@xxxxxxxxxxxxxx w/No Ads,
6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise