std::span in default bindings? #4177
NAThompson
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Would it be possible to have the std::span integration contained in its own header? If so, we could easily add it like we do for std::filesystem. |
Beta Was this translation helpful? Give feedback.
2 replies
-
We use an LLVM backport of std::span, including conversions to/from buffer protocol objects. I don't want to make the PR myself, but happy for someone else to do it.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the list of all builtin conversions has a large number of extremely useful converters, however
std::span
has not yet been implemented.Would it be sensible to add
std::span
? It appears to bind more naturally to numpy vectors than doesstd::vector
and might be "the right way" to expose C++ memory to python in the future.Beta Was this translation helpful? Give feedback.
All reactions