Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Dec 19, 2023

std::span allows static extents, which is a nice benefit over just Span.

However, the interface of the two isn't identical and requires some more changes than just defining an alias. This is my current draft to compile with std::span. This should be the minimal changes required to get a green CI, but the changes may not be ideal, so this remains a draft.

Also, this requires and is based on #29071.

In the meantime, changes that make sense on their own, can be split up.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 19, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/29119.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK jonatack

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

No conflicts as of last run.

#include <type_traits>
#include <span>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double include

@jonatack
Copy link
Member

Concept ACK, provided we're migrating to std::span.

@maflcko
Copy link
Member Author

maflcko commented Aug 30, 2024

Next step would be bitcoin-core/leveldb-subtree#45

@maflcko
Copy link
Member Author

maflcko commented Dec 17, 2024

This is my current draft to compile with std::span.

Now that it was show that it is possible to compile all code with std::span, I went ahead and created a scripted-diff in #31519

@maflcko maflcko closed this Dec 17, 2024
@maflcko maflcko deleted the 2312-std-span- branch December 19, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants