mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
add converter for nullptr_t
This commit is contained in:
parent
5ef1219030
commit
9b0b40e0b0
@ -308,8 +308,8 @@ public:
|
||||
PYBIND11_TYPE_CASTER(void_type, "None");
|
||||
};
|
||||
|
||||
template <> class type_caster<void> : public type_caster<void_type> {
|
||||
};
|
||||
template <> class type_caster<void> : public type_caster<void_type> { };
|
||||
template <> class type_caster<std::nullptr_t> : public type_caster<void_type> { };
|
||||
|
||||
template <> class type_caster<bool> {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user