Here is a patch that adds Alexeys test to the test suite.

I am unsure though if this is really the issue that building znc runs into. It seems to happen only with "using std::pair", which the znc sources do not do.

>From dec5e7f1ed1cba136ed534ca82a7bf947351d089 Mon Sep 17 00:00:00 2001
From: Torsten Landschoff <tors...@landschoff.net>
Date: Tue, 29 May 2012 06:40:21 +0200
Subject: [PATCH] Added a test case checking that pair<string, string> can be swigged.

---
 Examples/test-suite/common.mk     |    1 +
 Examples/test-suite/string_pair.i |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
 create mode 100644 Examples/test-suite/string_pair.i

diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk
index 0f80230..9028408 100644
--- a/Examples/test-suite/common.mk
+++ b/Examples/test-suite/common.mk
@@ -325,6 +325,7 @@ CPP_TEST_CASES += \
 	static_array_member \
 	static_const_member \
 	static_const_member_2 \
+	string_pair \
 	struct_initialization_cpp \
 	struct_value \
 	symbol_clash \
diff --git a/Examples/test-suite/string_pair.i b/Examples/test-suite/string_pair.i
new file mode 100644
index 0000000..1c1f3f7
--- /dev/null
+++ b/Examples/test-suite/string_pair.i
@@ -0,0 +1,9 @@
+%module string_pair
+
+%include <stl.i>
+%{
+using std::pair;
+%}
+using std::pair;
+
+%template(StrPair) pair<std::string, std::string>;
-- 
1.7.1.rc2.dirty

Reply via email to