From afc29ea8a3ced39e135abba5878cb17ffb920a75 Mon Sep 17 00:00:00 2001 From: huruitao Date: Fri, 25 Oct 2024 15:41:30 +0800 Subject: [PATCH] cherry pick 28be2ab from https://gitee.com/hu-ruitao/castengine_wifi_display/pulls/128 fix codecheck Signed-off-by: huruitao --- services/extend/magic_enum/magic_enum.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/extend/magic_enum/magic_enum.hpp b/services/extend/magic_enum/magic_enum.hpp index d43b075..df49451 100755 --- a/services/extend/magic_enum/magic_enum.hpp +++ b/services/extend/magic_enum/magic_enum.hpp @@ -60,8 +60,7 @@ template constexpr size_t get_enum_size(std::integer_sequence) { constexpr std::array valid{is_valid(Is)>()...}; - constexpr std::size_t count = [](decltype((valid)) valid_) constexpr noexcept->std::size_t - { + constexpr std::size_t count = [](decltype((valid)) valid_) constexpr noexcept->std::size_t { auto count_ = std::size_t{0}; for (std::size_t i_ = 0; i_ < valid_.size(); ++i_) { if (valid_[i_]) { @@ -69,8 +68,7 @@ constexpr size_t get_enum_size(std::integer_sequence) } } return count_; - } - (valid); + }(valid); return count; } -- Gitee