function template uses templated header - swig interface file
How does one create the swig interface file for a function (in a separate file) that uses a templated header file?
My Bar.C uses a template instance of Foo.h. I am not seeing the code being wrapped correctly
Thanks
# A function template that uses a class template
Foo.h
==============
template <class T> class Foo {
private:
T* data;
public Foo(T *d)
{
data = t;
}
}
Bar.h
=================
#include "Foo.h"
void bar(Foo<int> f);
Bar.C
=================
#include "Bar.h"
void bar(Foo<int> f) {
// do something;
return;
}
FooBar.i
=========
%module FooBar
%include "Foo.h"
%template(FooI) Foo<int>;
%include "Bar.h"
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user