We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another problem resulting from #1679.
namespace a { template <class T> class Bar {}; class Foo { public: Bar<int> bar; }; }
Compiling yields Foo_py.i:21: Error: Template 'Bar' undefined.
Foo_py.i:21: Error: Template 'Bar' undefined.
This is due to %template being placed before the definition of Bar in Foo_py.i
%template
Bar
Foo_py.i
#ifndef TRICK_SWIG_TEMPLATE_a__Foo_bar #define TRICK_SWIG_TEMPLATE_a__Foo_bar namespace a { %template(a__Foo_bar) Bar<int>; } #endif namespace a{ template <class T> class Bar {};
The text was updated successfully, but these errors were encountered:
Also fails if the definition of Bar is outside of the a namespace, although for a different reason.
a
template <class T> class Bar {}; namespace a { class Foo { public: Bar<int> bar; }; }
Compiling yields Foo_py.i:26: Error: 'Bar' resolves to '::Bar' and was incorrectly instantiated in scope 'a' instead of within scope ''.
Foo_py.i:26: Error: 'Bar' resolves to '::Bar' and was incorrectly instantiated in scope 'a' instead of within scope ''.
This is due to %template being placed in the wrong namespace.
template <class T> class Bar {}; #ifndef TRICK_SWIG_TEMPLATE_a__Foo_bar #define TRICK_SWIG_TEMPLATE_a__Foo_bar namespace a { %template(a__Foo_bar) Bar<int>; } #endif
Sorry, something went wrong.
Thanks for reporting. We'll look into this.
We think this is addressed by #1741. Closing this down.
Successfully merging a pull request may close this issue.
Another problem resulting from #1679.
Compiling yields
Foo_py.i:21: Error: Template 'Bar' undefined.
This is due to
%template
being placed before the definition ofBar
inFoo_py.i
The text was updated successfully, but these errors were encountered: