Fix shared_ptr typemaps where the pointer type is a templated type with with more than one parameter.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-03-27 20:29:01 +00:00
commit 8c24e2ca74
3 changed files with 22 additions and 12 deletions

View file

@ -321,6 +321,8 @@ template <class T1, class T2> struct Pair : Base<T1, T2> {
Pair(T1 t1, T2 t2) : Base<T1, T2>(t1, t2), val1(t1), val2(t2) {}
virtual std::string getValue() const { return "Pair<>"; };
};
Pair<int, double> pair_id2(Pair<int, double> p) { return p; }
SwigBoost::shared_ptr< Pair<int, double> > pair_id1(SwigBoost::shared_ptr< Pair<int, double> > p) { return p; }
%}
%template(PairIntDouble) Pair<int, double>;