mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01: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:
@@ -402,12 +402,12 @@ void CDBIterator::SeekImpl(Span<const std::byte> key)
|
||||
m_impl_iter->iter->Seek(slKey);
|
||||
}
|
||||
|
||||
Span<const std::byte> CDBIterator::GetKeyImpl() const
|
||||
std::span<const std::byte> CDBIterator::GetKeyImpl() const
|
||||
{
|
||||
return MakeByteSpan(m_impl_iter->iter->key());
|
||||
}
|
||||
|
||||
Span<const std::byte> CDBIterator::GetValueImpl() const
|
||||
std::span<const std::byte> CDBIterator::GetValueImpl() const
|
||||
{
|
||||
return MakeByteSpan(m_impl_iter->iter->value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user