Correct test cases to be valid C++ by doing a typedef to the

specialized type rather than to the not-visible general template type
parameter.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Ian Lance Taylor 2012-03-14 19:25:14 +00:00
commit 589ae60501
2 changed files with 4 additions and 4 deletions

View file

@ -48,8 +48,8 @@ template<class Key, class T, class J = int> class Multimap {
namespace Standard {
template<> class Multimap<A, int> {
public:
typedef Key key_type;
typedef T mapped_type;
typedef A key_type;
typedef int mapped_type;
class iterator;

View file

@ -50,8 +50,8 @@ template<class Key, class T, class J = int> class Multimap {
namespace Standard {
template<> class Multimap<A, int> {
public:
typedef Key key_type;
typedef T mapped_type;
typedef A key_type;
typedef int mapped_type;
class iterator;