summaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-01 14:18:29 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-01 14:18:29 -0200
commit6d2e7d8a5cd7fea0507309107c8b306a44ef2ce0 (patch)
treeae368269d50ca7eff2904dadec8a39c36458d0e1 /libshiboken/conversions.h
parent39383ee7bb8c489adf0d251685a9599c44360076 (diff)
downloadshiboken-6d2e7d8a5cd7fea0507309107c8b306a44ef2ce0.tar.gz
shiboken-6d2e7d8a5cd7fea0507309107c8b306a44ef2ce0.tar.xz
shiboken-6d2e7d8a5cd7fea0507309107c8b306a44ef2ce0.zip
Remove const version of Converters to avoid hidding generator bugs.
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r--libshiboken/conversions.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index a49ec34d..ed7dcc01 100644
--- a/libshiboken/conversions.h
+++ b/libshiboken/conversions.h
@@ -172,16 +172,6 @@ struct Converter<T&>
static inline T& toCpp(PyObject* pyobj) { return *Converter<T*>::toCpp(pyobj); }
};
-template <typename T>
-struct Converter<const T&> : Converter<T&>
-{
- static inline PyObject* toPython(const T& cppobj)
- {
- T* cpy = CppObjectCopier<T>::copy(cppobj);
- return createWrapper<T>(cpy);
- }
-};
-
// Void pointer conversions.
template<>
struct Converter<void*>
@@ -198,7 +188,6 @@ struct Converter<void*>
}
static void* toCpp(PyObject* pyobj) { return pyobj; }
};
-template <> struct Converter<const void*> : Converter<void*> {};
// Base converter meant to be inherited by converters for classes that could be
// passed by value.
@@ -298,7 +287,6 @@ struct Converter<PyObject*> : ObjectTypeConverter<PyObject*>
{
static inline PyObject* toCpp(PyObject* pyobj) { return pyobj; }
};
-template <> struct Converter<const PyObject*> : Converter<PyObject*> {};
// Primitive Conversions ------------------------------------------------------
template <>