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:
parent
e0b1691067
commit
589ae60501
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue