Assert ABI version 106

This commit is contained in:
Robert Haschke 2025-02-17 05:01:18 +01:00
parent b8cf283e2e
commit 0a130f24f6

View File

@ -5,8 +5,8 @@
#pragma once
#include "pybind11.h"
static_assert(PYBIND11_INTERNALS_VERSION >= 6,
"pybind11 ABI version 6 is required for smart_holder functionality.");
static_assert(PYBIND11_INTERNALS_VERSION == 106,
"pybind11 ABI version 106 is required for smart_holder functionality.");
// Legacy macros introduced with smart_holder_type_casters implementation in 2021.
// Deprecated.