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:
Marcelo Matus 2006-03-21 19:12:43 +00:00
commit 9857ae8e6d
2 changed files with 55 additions and 2 deletions

View file

@ -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>;