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

Commit680c6a4

Browse files
Update PyBind11 guard to 3.x release (#324)
Fix#323
1 parent520e4f8 commit680c6a4

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

[8]ページ先頭

©2009-2025 Movatter.jp