summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-21 18:36:21 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-21 18:36:21 +0000
commit91c817b4752e3de61cc0d5b261f966c6e166237c (patch)
treeecd12425f296da217f2e43ee3a6e50e0d4e9ea7f
parent45256e0e9eb2d88bd24b416e4d5cb50522247773 (diff)
downloadswig-91c817b4752e3de61cc0d5b261f966c6e166237c.tar.gz
Fix C++11 extern template test
-rw-r--r--Examples/test-suite/cpp11_template_explicit.i19
1 files changed, 11 insertions, 8 deletions
diff --git a/Examples/test-suite/cpp11_template_explicit.i b/Examples/test-suite/cpp11_template_explicit.i
index 83b16583c..f8fca4fae 100644
--- a/Examples/test-suite/cpp11_template_explicit.i
+++ b/Examples/test-suite/cpp11_template_explicit.i
@@ -7,7 +7,10 @@
#pragma SWIG nowarn=SWIGWARN_PARSE_EXPLICIT_TEMPLATE
%inline %{
-#include <vector>
+
+template<typename T> struct Temper {
+ T val;
+};
class A {
public:
@@ -15,14 +18,14 @@ public:
int memberFunction() { return 100; }
};
-template class std::vector<A>;
-extern template class std::vector<A>;
+template class Temper<A>;
+extern template class Temper<A>;
-template class std::vector<A*>;
-extern template class std::vector<A*>;
+template class Temper<A*>;
+extern template class Temper<A*>;
-template class std::vector<int>;
-extern template class std::vector<int>;
+template class Temper<int>;
+extern template class Temper<int>;
%}
-%template(VectorInt) std::vector<int>;
+%template(TemperInt) Temper<int>;