Renamed template_double_brackets -> cpp0x_template_double_brackets.
Added CPP0X_TEST_CASES and CPP0X_TEST_BROKEN in common.mk. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2b4b1cc157
commit
1af6d8a1b0
1 changed files with 12 additions and 4 deletions
26
Examples/test-suite/cpp0x_template_double_brackets.i
Normal file
26
Examples/test-suite/cpp0x_template_double_brackets.i
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
%module foo
|
||||
#include <map>
|
||||
std::map<int,std::map<int, double>> m;
|
||||
std::map<int,std::map<int, double> > n;
|
||||
std::map< std::map<(6>>1), double>, double> o;
|
||||
//std::map< std::map<6>>1, double>, double> p; // fails as it should
|
||||
|
||||
class ABC {
|
||||
public:
|
||||
int a;
|
||||
int operator>>(ABC &);
|
||||
int operator<<(ABC &);
|
||||
};
|
||||
|
||||
template<class T>
|
||||
class ABC2 {
|
||||
public:
|
||||
int a;
|
||||
|
||||
template<typename U>
|
||||
int operator>>(ABC &, U);
|
||||
|
||||
template<typename U>
|
||||
int operator<<(ABC &, U);
|
||||
};
|
||||
|
||||
Loading…
Reference in a new issue