From 8ca0e105c71047a5d9a3994e811c32dc6a673dff Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Fri, 21 Oct 2022 12:41:57 -0400 Subject: [PATCH] Fix func signature --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index d389c8dc617..877b7e16eb0 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -75,7 +75,7 @@ inline const char *function_capsule_name() { return name; } -inline bool is_function_record_capsule(capsule &cap) { +inline bool is_function_record_capsule(const capsule &cap) { // Compare the pointers, not the values to ensure that each extension is unique return cap.name() == function_capsule_name(); }