From 0dd27a46eeb0ef3ba197c512775ccf27ad947e41 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 9 Apr 2021 18:34:05 +0300 Subject: [PATCH] mdbx++: minor fix constexpr/inline for `slice::invalid()`. Change-Id: I48864a61f4fef711117b2e04ac92656267e2d229 --- mdbx.h++ | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index 5ae3838a..7ae347c4 100644 --- a/mdbx.h++ +++ b/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