Skip to content

Commit

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

0 comments on commit 0a130f2

Please sign in to comment.