From 23f95f99409a1f65bc9f3d0fafd0c09a3b8a447b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 14 Jul 2014 15:14:37 +0200 Subject: [PATCH] Fixed Python scripting enabled builds. --- include/dlist.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dlist.h b/include/dlist.h index 2acf80271c..d8fcd31b3b 100644 --- a/include/dlist.h +++ b/include/dlist.h @@ -143,6 +143,8 @@ class DLIST : public DHEAD { public: +// Without the following ifdef, SWIG appends methods from the templated class +#ifndef SWIG /** * operator T* * is a casting operator that returns \a GetFirst(), a T* @@ -154,6 +156,7 @@ public: * is a dereferencing operator that returns \a GetFirst(), a T* */ T* operator -> () const { return GetFirst(); } +#endif /* SWIG */ /** * Function GetFirst