From cceb0a70efef009b87198796eb9016ffb82c7130 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 14 Dec 2025 09:47:06 +0100 Subject: chore: make Vettable pattern less redundant. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Config.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/kernel/NeKit/Config.h') diff --git a/src/kernel/NeKit/Config.h b/src/kernel/NeKit/Config.h index 40d2ede5..39f40401 100644 --- a/src/kernel/NeKit/Config.h +++ b/src/kernel/NeKit/Config.h @@ -15,7 +15,10 @@ #error !!! NeKernel compiles with C++20 as of December 4, 2025 !!! #endif -#define NE_ICODEC final : public ::Kernel::ICodec +#define NE_ICODEC \ + final: \ + public \ + ::Kernel::ICodec /// @brief The **Kernel** namespace. namespace Kernel { @@ -114,7 +117,7 @@ concept IsSerializable = requires() { template concept IsNotSerializable = requires() { - { !Type::kValue }; + { !Type::kValue }; }; /// @brief Encoding interface, used as a proxy to convert T to Char* @@ -190,9 +193,9 @@ struct FalseResult final {}; template struct TrueResult final { - using ResultType = Type; - using ResultTypeRef = ResultType&; + using ResultType = Type; + using ResultTypeRef = ResultType&; - static constexpr bool kValue = true; + static constexpr bool kValue = true; }; } // namespace Kernel -- cgit v1.2.3