Skip to content

Instantly share code, notes, and snippets.

@mondus
Created May 28, 2020 16:42
Show Gist options
  • Save mondus/f142ca4c2ebc94eac7d070b521a367cc to your computer and use it in GitHub Desktop.
Save mondus/f142ca4c2ebc94eac7d070b521a367cc to your computer and use it in GitHub Desktop.
%feature("flatnested");
%rename (Outer_Inner) Outer::Inner;
%inline %{
class Outer {
public:
void OuterFunc() {};
template<typename T> void TemplatOuterFunc();
class Inner;
};
class Outer::Inner {
public:
void InnerFunc() {};
template<typename T> void TemplateInnerFunc();
};
%}
%template(TemplatOuterFuncInt) Outer::TemplatOuterFunc<int>; // Generated
%template(TemplateInnerFuncInt) Outer::Inner::TemplateInnerFunc<int>; // Not Generated (???)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment