swig/Examples/test-suite/cpp0x_template_double_brackets.i
Matevz Jekovec 4946748164 Added test case for explicit conversion operators.
Some cosmetic fixes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 22:23:07 +00:00

30 lines
594 B
OpenEdge ABL

/* This interface checks whether Swig supports the new double angled brackets
in the template syntax without having a space inbetween. This feature was
introduced in new C++0x standard.
*/
%module foo
%inline %{
#include <map>
std::map<int,std::map<int, double>> m;
std::map< int,std::map<int, double> > n;
class ABC {
public:
int a;
int operator>>(ABC &);
int operator<<(ABC &);
};
template<class T>
class ABC2 {
public:
int a;
template<typename U>
U operator>>(ABC &);
template<typename U>
U operator<<(ABC &);
};
%}