Skip to content

Instantly share code, notes, and snippets.

@jpf91 jpf91/gist:938408
Created Apr 23, 2011

Embed
What would you like to do?
Swig4D Bug1
%module bug;
//Use swig2.0 -Wall -d -d2 -c++ bug.i
//Then in the generated files:
//in Test/Test.d:
//"class Tag : ..strList {"
template <class T> class List
{
public:
/*!
* Constructs an empty list.
*/
List();
};
namespace Test {
%template(strList) ::List<char>;
%feature("nspace") Tag;
class Tag : public ::List<char>
{
public:
::List<char> hello();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.