From 6130f8a3f4ab5ee9fa8804068e254faaf5d9ec41 Mon Sep 17 00:00:00 2001 From: OEOTYAN <58554322+OEOTYAN@users.noreply.github.com> Date: Wed, 1 May 2024 12:46:47 +0800 Subject: [PATCH] fix: fix #1520 --- src/mc/deps/core/mce/Blob.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mc/deps/core/mce/Blob.h b/src/mc/deps/core/mce/Blob.h index 4b78956c98..2fa70216be 100644 --- a/src/mc/deps/core/mce/Blob.h +++ b/src/mc/deps/core/mce/Blob.h @@ -38,11 +38,11 @@ class Blob { std::copy(s.begin(), s.end(), mBlob.get()); } - [[nodiscard]] constexpr pointer data() const { return mBlob.get(); } + [[nodiscard]] _CONSTEXPR23 pointer data() const { return mBlob.get(); } - [[nodiscard]] constexpr size_type size() const { return mSize; } + [[nodiscard]] _CONSTEXPR23 size_type size() const { return mSize; } - [[nodiscard]] constexpr std::span view() const { return {data(), size()}; } + [[nodiscard]] _CONSTEXPR23 std::span view() const { return {data(), size()}; } LL_CLANG_CEXPR Blob& operator=(Blob&&) noexcept = default; [[nodiscard]] _CONSTEXPR23 Blob(Blob&&) noexcept = default;