Fix expansion of the $parentclassname special variable

It incorrectly contains brackets in the expanded name.
Fixes SF Bug 1375.
This commit is contained in:
William S Fulton 2014-07-01 20:27:48 +01:00
commit 83749b3937
3 changed files with 17 additions and 1 deletions

View file

@ -19,3 +19,16 @@
struct ForExtension {
};
%}
%inline %{
namespace Space {
template <class T> class ExtendTemplate {};
}
%}
%extend Space::ExtendTemplate
{
void extending() { $parentclassname tmp; }
}
%template(ExtendTemplateInt) Space::ExtendTemplate<int>;