Skip to content

Commit 680c6a4

Browse files
Update PyBind11 guard to 3.x release (#324)
Fix #323
1 parent 520e4f8 commit 680c6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor-python/pytensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ namespace xt
214214
static self_type ensure(pybind11::handle h);
215215
static bool check_(pybind11::handle h);
216216

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

0 commit comments

Comments
 (0)