The following patch works around this swig problem:
Description: Qualify access to pair with std:: for SWIG.
SWIG seems to have problems with access to imported C++ namespaces.
William S. Fulton suggested to work around this by qualifying std::pair
in this email: http://article.gmane.org/gmane.comp.programming.swig.devel/21772
.
This patch does just that and seems to fix building with SWIG 2.0.7.
In the long run this should of course be fixed in SWIG.
Author: Torsten Landschoff torsten@debian.org
Bug-Debian: http://bugs.debian.org/672035
The following patch works around this swig problem:
Description: Qualify access to pair with std:: for SWIG.
SWIG seems to have problems with access to imported C++ namespaces.
William S. Fulton suggested to work around this by qualifying std::pair
in this email:
http://article.gmane.org/gmane.comp.programming.swig.devel/21772
.
This patch does just that and seems to fix building with SWIG 2.0.7.
In the long run this should of course be fixed in SWIG.
Author: Torsten Landschoff torsten@debian.org
Bug-Debian: http://bugs.debian.org/672035
```
--- znc-0.206.orig/modules/modpython/modpython.i
+++ znc-0.206/modules/modpython/modpython.i
@@ -174,10 +174,10 @@ public:
/* Web */
-%template(StrPair) pair<CString, CString>;
-%template(VPair) vector<pair<CString, CString> >;
-typedef vector<pair<CString, CString> > VPair;
-%template(VWebSubPages) vector<TWebSubPage>;
+%template(StrPair) std::pair<CString, CString>;
+%template(VPair) std::vector<std::pair<CString, CString> >;
+typedef std::vector<std::pair<CString, CString> > VPair;
+%template(VWebSubPages) std::vector<TWebSubPage>;
%inline %{
void VPair_Add2Str_(VPair* self, const CString& a, const CString& b) {
```
<!-- github-comment-id:6002303 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672035
The following patch works around this swig problem:
Description: Qualify access to pair with std:: for SWIG.
SWIG seems to have problems with access to imported C++ namespaces.
William S. Fulton suggested to work around this by qualifying std::pair
in this email:
http://article.gmane.org/gmane.comp.programming.swig.devel/21772
.
This patch does just that and seems to fix building with SWIG 2.0.7.
In the long run this should of course be fixed in SWIG.
Author: Torsten Landschoff torsten@debian.org
Bug-Debian: http://bugs.debian.org/672035
I have merged this for now, thanks @Bluehorn. This works for SWIG 2.0.6.