Assert PYBIND11_INTERNALS_VERSION >= 6

... when including smart_holder.h
This commit is contained in:
Robert Haschke 2025-02-16 13:48:32 +01:00
parent 7d37eb9949
commit b8cf283e2e

View File

@ -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.