Allow an instantiated template to have the same name as the C++ template name
For example, this is now possible:
template<typename T> struct X { ... };
%template(X) X<int>;
Closes #1100.
This commit is contained in:
parent
d37e41fed8
commit
e27a606335
7 changed files with 325 additions and 4 deletions
|
|
@ -0,0 +1,42 @@
|
|||
from template_class_reuse_name import *
|
||||
|
||||
Bool1().tt()
|
||||
Bool1False().ff()
|
||||
|
||||
Bool2().tt()
|
||||
Bool2False().ff()
|
||||
|
||||
Bool3().tt()
|
||||
Bool3False().ff()
|
||||
|
||||
Bool4().tt()
|
||||
Bool4False().ff()
|
||||
|
||||
|
||||
BoolForward1().tt()
|
||||
BoolForward1False().ff()
|
||||
|
||||
BoolForward2().tt()
|
||||
BoolForward2False().ff()
|
||||
|
||||
BoolForward3().tt()
|
||||
BoolForward3False().ff()
|
||||
|
||||
BoolForward4().tt()
|
||||
BoolForward4False().ff()
|
||||
|
||||
|
||||
IntBool1().tt()
|
||||
IntBool1False().ff()
|
||||
|
||||
IntBool2().tt()
|
||||
IntBool2False().ff()
|
||||
|
||||
IntBool3().tt()
|
||||
IntBool3False().ff()
|
||||
|
||||
IntBool4().tt()
|
||||
IntBool4False().ff()
|
||||
|
||||
Duplicate2_0().n()
|
||||
Duplicate3().n()
|
||||
Loading…
Add table
Add a link
Reference in a new issue