mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 17:09:27 +00:00
Assert PYBIND11_INTERNALS_VERSION >= 6
... when including smart_holder.h
This commit is contained in:
parent
7d37eb9949
commit
b8cf283e2e
@ -5,6 +5,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "pybind11.h"
|
#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.
|
// Legacy macros introduced with smart_holder_type_casters implementation in 2021.
|
||||||
// Deprecated.
|
// Deprecated.
|
||||||
|
Loading…
Reference in New Issue
Block a user