From b8cf283e2eb07df6cfdbb7a2c396d1168f9c88ef Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 16 Feb 2025 13:48:32 +0100 Subject: [PATCH] Assert PYBIND11_INTERNALS_VERSION >= 6 ... when including smart_holder.h --- include/pybind11/smart_holder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pybind11/smart_holder.h b/include/pybind11/smart_holder.h index 5f568a552..98db4f17d 100644 --- a/include/pybind11/smart_holder.h +++ b/include/pybind11/smart_holder.h @@ -5,6 +5,8 @@ #pragma once #include "pybind11.h" +static_assert(PYBIND11_INTERNALS_VERSION >= 6, + "pybind11 ABI version 6 is required for smart_holder functionality."); // Legacy macros introduced with smart_holder_type_casters implementation in 2021. // Deprecated.