mdbx++: minor fix constexpr/inline for slice::invalid().

Change-Id: I48864a61f4fef711117b2e04ac92656267e2d229
This commit is contained in:
Leonid Yuriev 2021-04-09 18:34:05 +03:00
parent 20299f87cb
commit 0dd27a46ee

View File

@ -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