diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-01 14:18:29 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:07 -0300 |
commit | 8655647b9c23558aa21b155bd4246c6433dbeaf2 (patch) | |
tree | 9afe8fe1e9b98f6a33c23f77f92bd5aaacf990bb /libshiboken | |
parent | 489a86931733bd31ffc052d30da7e9ad403f834f (diff) |
Remove const version of Converters to avoid hidding generator bugs.
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/conversions.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index a49ec34db..ed7dcc017 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 <> |