Skip to content

Commit afc1672

Browse files
Fix pybind11 compatibility for version 3.x (#326)
Fix #323 - again
1 parent 680c6a4 commit afc1672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor-python/pyarray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ namespace xt
195195
static self_type ensure(pybind11::handle h);
196196
static bool check_(pybind11::handle h);
197197

198-
#if PYBIND11_VERSION_MAJOR == 2 && PYBIND11_VERSION_MINOR >= 3
198+
#if (PYBIND11_VERSION_MAJOR == 2 && PYBIND11_VERSION_MINOR >= 3) || PYBIND11_VERSION_MAJOR >= 3
199199
// Prevent ambiguous overload resolution for operators defined for
200200
// both xt::xcontainer_semantic and pybind11::object.
201201
using semantic_base::operator+=;

0 commit comments

Comments
 (0)