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
24
Examples/test-suite/cpp11_template_explicit.i
Normal file
24
Examples/test-suite/cpp11_template_explicit.i
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* This unit tests whether SWIG correctly parses the code and makes wrappers
|
||||
for the new C++11 extern templates (explicit template instantiation without
|
||||
using the translation unit).
|
||||
*/
|
||||
%module cpp11_template_explicit
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_EXPLICIT_TEMPLATE
|
||||
|
||||
%inline %{
|
||||
#include <vector>
|
||||
|
||||
class A {
|
||||
public:
|
||||
int member;
|
||||
int memberFunction() { return 100; }
|
||||
};
|
||||
|
||||
template class std::vector<A>;
|
||||
extern template class std::vector<A>;
|
||||
|
||||
template class std::vector<A*>;
|
||||
extern template class std::vector<A*>;
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue