Commit 43df8a4
* Follow up of return_value_policy_pack
* Add cast_tuple_str_bytes tests.
* Systematically ensure PYBIND11_TYPE_CASTER_RVPP is used in stl.h
* PYBIND11_WARNING_DISABLE_GCC("-Wfree-nonheap-object")
* Move PYBIND11_WARNING_DISABLE_GCC("-Wfree-nonheap-object") to test_return_value_policy_pack.cpp
* Use `static auto *o = new ...` to escape the CUDA and MINGW compiler warnings.
* Very minor enhancement: Avoid need for lambda `[=]` by using `static constexpr` for `return_value_policy` shortcuts.
* Add comprehensive tests for PYBIND11_OVERRIDE_PURE_NAME_RVPP, PYBIND11_OVERRIDE_NAME_RVPP
* Remove redundant `virtual`
Resolves clang-tidy errors: `'virtual' is redundant since the function is already declared 'override'`
* Move PYBIND11_OVERRIDE_.*NAME_RVPP macros up to be close to the non-RVPP versions (no other changes).
* Alternative PYBIND11_OVERRIDE_.*NAME_RVPP implementations that do not rely on __VA_OPT__
__VA_OPT__ is a C++20 feature that is supported only by some pre-C++20 compilers but not all.
The dangling commas (/* no arguments */) in the PYBIND11_OVERRIDE_.*NAME_RVPP invocations need to be removed.
* Explict VirtualBase copy ctor for compatibility with clang 3.6, 3.7, 3.9
* Work around non-standard MSVC preprocessor behavior (all MSVC versions, even the newest).
* Fix g++ 12.2.0 C++11 failure unrelated to the rvpp work, noticed in passing while testing locally.
* Generalize PYBIND11_OVERRIDE_IMPL so that it can be reused for the new PYBIND11_OVERRIDE.*_NAME_RVPP macros.
* Introduce PYBIND11_OVERRIDE_PURE_NAME_IMPL for reuse from PYBIND11_OVERRIDE_PURE_NAME, PYBIND11_OVERRIDE_PURE_NAME_RVPP
---------
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
1 parent ca53626 commit 43df8a4
File tree
6 files changed
+322
-32
lines changed- include/pybind11
- tests
6 files changed
+322
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | | - | |
| 1237 | + | |
1238 | 1238 | | |
1239 | 1239 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1248 | 1251 | | |
1249 | 1252 | | |
1250 | | - | |
| 1253 | + | |
1251 | 1254 | | |
1252 | 1255 | | |
1253 | 1256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3053 | 3053 | | |
3054 | 3054 | | |
3055 | 3055 | | |
3056 | | - | |
| 3056 | + | |
3057 | 3057 | | |
3058 | 3058 | | |
3059 | 3059 | | |
3060 | 3060 | | |
3061 | 3061 | | |
3062 | | - | |
| 3062 | + | |
3063 | 3063 | | |
3064 | 3064 | | |
3065 | 3065 | | |
| |||
3088 | 3088 | | |
3089 | 3089 | | |
3090 | 3090 | | |
3091 | | - | |
| 3091 | + | |
| 3092 | + | |
3092 | 3093 | | |
3093 | 3094 | | |
3094 | 3095 | | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
3095 | 3121 | | |
3096 | 3122 | | |
3097 | 3123 | | |
3098 | 3124 | | |
3099 | 3125 | | |
3100 | | - | |
3101 | | - | |
3102 | | - | |
3103 | | - | |
3104 | | - | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
3105 | 3131 | | |
3106 | 3132 | | |
3107 | 3133 | | |
| |||
3153 | 3179 | | |
3154 | 3180 | | |
3155 | 3181 | | |
3156 | | - | |
| 3182 | + | |
| 3183 | + | |
3157 | 3184 | | |
3158 | 3185 | | |
3159 | 3186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
0 commit comments