Skip to content

Commit

Permalink
Consider PYBIND11_SMART_HOLDER_DISABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Feb 17, 2025
1 parent 0a130f2 commit 972a2ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/pybind11/smart_holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#pragma once

#include "pybind11.h"
static_assert(PYBIND11_INTERNALS_VERSION == 106,

#if !defined(PYBIND11_SMART_HOLDER_DISABLE)
static_assert(PYBIND11_INTERNALS_VERSION >= 106,
"pybind11 ABI version 106 is required for smart_holder functionality.");
#endif

// Legacy macros introduced with smart_holder_type_casters implementation in 2021.
// Deprecated.
Expand Down

0 comments on commit 972a2ec

Please sign in to comment.