Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafc1672

Browse files
Fix pybind11 compatibility for version 3.x (#326)
Fix#323 - again
1 parent680c6a4 commitafc1672

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_typeensure(pybind11::handle h);
196196
staticboolcheck_(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)

[8]ページ先頭

©2009-2025 Movatter.jp