From 6509e26b89f271259cdc6c633c144ea46bfcea87 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 26 Oct 2014 20:32:46 +0000 Subject: [PATCH] Fix modpython+shared_ptr --- modules/modpython/modpython.i | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/modpython/modpython.i b/modules/modpython/modpython.i index 1fc8899b..01d1a7c7 100644 --- a/modules/modpython/modpython.i +++ b/modules/modpython/modpython.i @@ -60,6 +60,10 @@ using std::allocator; %include %include +%shared_ptr(CAuthBase); +%shared_ptr(CWebSession); +%shared_ptr(CClientAuth); + %include "modpython/cstring.i" %template(_stringlist) std::list; @@ -130,8 +134,6 @@ class MCString : public std::map {}; %include "../include/znc/defines.h" %include "../include/znc/Utils.h" %include "../include/znc/Threads.h" -%template(PAuthBase) std::shared_ptr; -%template(WebSession) std::shared_ptr; %include "../include/znc/Config.h" %include "../include/znc/Csocket.h" %template(ZNCSocketManager) TSocketManager;