-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from pybind11 to nanobind (#598)
- Loading branch information
Showing
29 changed files
with
1,071 additions
and
768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ modifiableFileExclude { | |
includeOtherLibs { | ||
^Eigen/ | ||
^catch2/ | ||
^pybind11/ | ||
^nanobind/ | ||
^sleipnir/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Tyler Veness <[email protected]> | ||
Date: Sat, 6 Jul 2024 14:27:32 -0700 | ||
Subject: [PATCH 1/2] Replace zero-size array | ||
|
||
--- | ||
include/nanobind/nb_attr.h | 6 ------ | ||
1 file changed, 6 deletions(-) | ||
|
||
diff --git a/include/nanobind/nb_attr.h b/include/nanobind/nb_attr.h | ||
index 43aec3f196c3847cf72abce29248bd4a2a4bcd6b..b6a9c17f914f9bc86ca507f036c59f9ddb85a890 100644 | ||
--- a/include/nanobind/nb_attr.h | ||
+++ b/include/nanobind/nb_attr.h | ||
@@ -204,13 +204,7 @@ template <size_t Size> struct func_data_prelim { | ||
// | ||
// As a workaround it is likely possible to restrict the scope of style | ||
// checks to particular C++ namespaces or source code locations. | ||
-#if defined(_MSC_VER) | ||
- // MSVC doesn't support zero-length arrays | ||
arg_data args[Size == 0 ? 1 : Size]; | ||
-#else | ||
- // GCC and Clang do. | ||
- arg_data args[Size]; | ||
-#endif | ||
}; | ||
|
||
template <typename F> |
Oops, something went wrong.