mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:34:12 +08:00
mdbx++: minor fix constexpr/inline for slice::invalid()
.
Change-Id: I48864a61f4fef711117b2e04ac92656267e2d229
This commit is contained in:
parent
20299f87cb
commit
0dd27a46ee
4
mdbx.h++
4
mdbx.h++
@ -791,9 +791,7 @@ struct LIBMDBX_API_TYPE slice : public ::MDBX_val {
|
|||||||
|
|
||||||
/// \brief Build an invalid slice which non-zero length and refers to null
|
/// \brief Build an invalid slice which non-zero length and refers to null
|
||||||
/// address.
|
/// address.
|
||||||
MDBX_CXX11_CONSTEXPR static slice invalid() noexcept {
|
inline static slice invalid() noexcept { return slice(size_t(-1)); }
|
||||||
return slice(size_t(-1));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MDBX_CXX11_CONSTEXPR slice(size_t invalid_length) noexcept
|
MDBX_CXX11_CONSTEXPR slice(size_t invalid_length) noexcept
|
||||||
|
Loading…
x
Reference in New Issue
Block a user