diff --git a/include/nanobind/nb_attr.h b/include/nanobind/nb_attr.h index 25441ca5..b488ae57 100644 --- a/include/nanobind/nb_attr.h +++ b/include/nanobind/nb_attr.h @@ -63,8 +63,8 @@ template struct intrusive_ptr { }; struct type_slots { - type_slots (PyType_Slot *value) : value(value) { } - PyType_Slot *value; + type_slots (const PyType_Slot *value) : value(value) { } + const PyType_Slot *value; }; struct type_slots_callback {