mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:34:13 +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
|
||||
/// address.
|
||||
MDBX_CXX11_CONSTEXPR static slice invalid() noexcept {
|
||||
return slice(size_t(-1));
|
||||
}
|
||||
inline static slice invalid() noexcept { return slice(size_t(-1)); }
|
||||
|
||||
protected:
|
||||
MDBX_CXX11_CONSTEXPR slice(size_t invalid_length) noexcept
|
||||
|
Loading…
x
Reference in New Issue
Block a user