Added warning for initializer_list introduced in C++0x.
Added testcase cpp0x_initializer_list. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bc8f86b6ec
commit
dccbc68c70
4 changed files with 37 additions and 16 deletions
13
Examples/test-suite/cpp0x_initializer_list.i
Normal file
13
Examples/test-suite/cpp0x_initializer_list.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* This testcase checks whether Swig correctly uses the new initializer_list
|
||||
introduced in C++0x. */
|
||||
%module cpp0x_initializer_list
|
||||
|
||||
%inline %{
|
||||
#include <initializer_list>
|
||||
|
||||
class A {
|
||||
public:
|
||||
A( std::initializer_list<int, int> ) {}
|
||||
};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue