Fix expansion of the $parentclassname special variable
It incorrectly contains brackets in the expanded name. Fixes SF Bug 1375.
This commit is contained in:
parent
e982dc7e3b
commit
83749b3937
3 changed files with 17 additions and 1 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue