From a5b0cdcb937b2853e012489633d692099dab7078 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 12 Dec 2023 13:16:47 -0800 Subject: [PATCH] Add NOTE (#4968) --- README_smart_holder.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README_smart_holder.rst b/README_smart_holder.rst index 9c7287c5c8..7943d5c6ca 100644 --- a/README_smart_holder.rst +++ b/README_smart_holder.rst @@ -107,6 +107,7 @@ There are three small differences compared to Classic pybind11: ``#include ``. - The ``PYBIND11_SMART_HOLDER_TYPE_CASTERS(Foo)`` macro is needed. + — NOTE: This macro needs to be in the global namespace. - ``py::classh`` is used instead of ``py::class_``.