mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 08:44:02 +02:00
refactor: Return std::span from MakeByteSpan
In theory this commit should only touch the span.h header, because std::span can implicilty convert into Span in most places, if needed. However, at least when using the clang compiler, there are some false-positive lifetimebound warnings and some implicit conversions can not be resolved. Thus, this refactoring commit also changed the affected places to replace Span with std::span.
This commit is contained in:
@@ -130,8 +130,8 @@ private:
|
||||
const std::unique_ptr<IteratorImpl> m_impl_iter;
|
||||
|
||||
void SeekImpl(Span<const std::byte> key);
|
||||
Span<const std::byte> GetKeyImpl() const;
|
||||
Span<const std::byte> GetValueImpl() const;
|
||||
std::span<const std::byte> GetKeyImpl() const;
|
||||
std::span<const std::byte> GetValueImpl() const;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user