From 88a3f54eee98241826c02ff7a911850bb7a0a91d Mon Sep 17 00:00:00 2001 From: lyk Date: Sun, 3 Nov 2024 21:39:57 +0800 Subject: [PATCH] update to nanobind 2.2.0 --- .gitmodules | 2 +- 3rdparty/nanobind | 2 +- py_src/py_utils.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 8ba81ae..5fa908e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,4 +25,4 @@ [submodule "3rdparty/nanobind"] path = 3rdparty/nanobind url = https://github.com/wjakob/nanobind.git - tag = v2.0.0 + tag = v2.2.0 diff --git a/3rdparty/nanobind b/3rdparty/nanobind index cbf064b..017de5c 160000 --- a/3rdparty/nanobind +++ b/3rdparty/nanobind @@ -1 +1 @@ -Subproject commit cbf064b920c47d22eb8e8295bde6ed693c895e05 +Subproject commit 017de5c7d4cf5f2d21ec1ea27614c9d8ee524bcd diff --git a/py_src/py_utils.h b/py_src/py_utils.h index a757647..5208171 100644 --- a/py_src/py_utils.h +++ b/py_src/py_utils.h @@ -164,10 +164,10 @@ auto pitchbend_from_numpy(NDARR(unit, 1) time, NDARR(i32, 1) value) { return details::to_shared_vec(std::move(ans)); } -template -auto textmeta_from_numpy(NDARR(unit, 1) time, NDARR(std::string, 1) text) { - throw std::runtime_error("TextMeta does not support numpy"); -} +// template +// auto textmeta_from_numpy(NDARR(unit, 1) time, NDARR(std::string, 1) text) { +// throw std::runtime_error("TextMeta does not support numpy"); +// } template auto bind_time_stamp(nb::module_& m, const std::string& name) {