Rename all C++0x to C++11 and cpp0x to cpp11
This commit is contained in:
parent
173c4b3bba
commit
738cc36aab
52 changed files with 307 additions and 307 deletions
39
Examples/test-suite/cpp11_template_double_brackets.i
Normal file
39
Examples/test-suite/cpp11_template_double_brackets.i
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* 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++11 standard.
|
||||
*/
|
||||
%module cpp11_template_double_brackets
|
||||
%inline %{
|
||||
#include <map>
|
||||
std::map<int,std::map<int, double>> map1;
|
||||
std::map< int,std::map<int, double> > map2;
|
||||
|
||||
std::map<int,std::map<int, std::map<int, double>>> map3;
|
||||
std::map<int,std::map<int, std::map<int, std::map<int, double>>>> map4;
|
||||
%}
|
||||
|
||||
// Check streaming operators are still okay
|
||||
%rename(ExtractionOperator) operator>>;
|
||||
%rename(InsertionOperator) operator<<;
|
||||
|
||||
%inline %{
|
||||
class ABC {
|
||||
public:
|
||||
int a;
|
||||
int operator>>(ABC &) { return 0; }
|
||||
int operator<<(ABC &) { return 0; }
|
||||
};
|
||||
|
||||
template<class T>
|
||||
class ABC2 {
|
||||
public:
|
||||
int a;
|
||||
|
||||
template<typename U>
|
||||
U operator>>(ABC &);
|
||||
|
||||
template<typename U>
|
||||
U operator<<(ABC &);
|
||||
};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue