updated custom conversions to use Converter<T>::isConvertible properly
This commit is contained in:
parent
7c0aea7c45
commit
9c0e56b598
6 changed files with 16 additions and 16 deletions
|
|
@ -1,8 +1,8 @@
|
|||
template <typename qmap>
|
||||
struct Converter_qmap
|
||||
{
|
||||
static bool isConvertible(const PyObject* pyObj) {
|
||||
return PyDict_Check(const_cast<PyObject*>(pyObj));
|
||||
static bool isConvertible(PyObject* pyObj) {
|
||||
return PyDict_Check(pyObj);
|
||||
}
|
||||
|
||||
static PyObject* toPython(qmap map)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue