Skip to content

Commit

Permalink
Assert PYBIND11_INTERNALS_VERSION >= 6
Browse files Browse the repository at this point in the history
... when including smart_holder.h
  • Loading branch information
rhaschke committed Feb 16, 2025
1 parent 7d37eb9 commit b8cf283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/pybind11/smart_holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b8cf283

Please sign in to comment.