Skip to content

Commit b8cf283

Browse files
committed
Assert PYBIND11_INTERNALS_VERSION >= 6
... when including smart_holder.h
1 parent 7d37eb9 commit b8cf283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pybind11/smart_holder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#pragma once
66

77
#include "pybind11.h"
8+
static_assert(PYBIND11_INTERNALS_VERSION >= 6,
9+
"pybind11 ABI version 6 is required for smart_holder functionality.");
810

911
// Legacy macros introduced with smart_holder_type_casters implementation in 2021.
1012
// Deprecated.

0 commit comments

Comments
 (0)