more fixes for '%rename Class' + %copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8541fa166b
commit
9857ae8e6d
2 changed files with 55 additions and 2 deletions
|
|
@ -116,6 +116,39 @@ public:
|
|||
namespace ABC_Nam {
|
||||
namespace ABC_Libor {
|
||||
struct ModelUtils {};
|
||||
|
||||
template <class T>
|
||||
struct ModelUtils_T {};
|
||||
|
||||
}
|
||||
}
|
||||
%}
|
||||
|
||||
%template(ModelUtils_i) ABC_Nam::ABC_Libor::ModelUtils_T<int>;
|
||||
|
||||
|
||||
%rename(Space1Space2_TotalReturnSwap) Space1::Space2::TotalReturnSwap;
|
||||
|
||||
%copyctor;
|
||||
|
||||
%inline %{
|
||||
namespace Space1 {
|
||||
namespace Space2 {
|
||||
|
||||
class TotalReturnSwap {
|
||||
public:
|
||||
TotalReturnSwap() {}
|
||||
};
|
||||
|
||||
template <class T>
|
||||
class TotalReturnSwap_T {
|
||||
public:
|
||||
TotalReturnSwap_T() {}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
%}
|
||||
|
||||
%template(Total_i) Space1::Space2::TotalReturnSwap_T<int>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue