From d84161f18f94a2d307c370973cd0e2a066628c29 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 17 Apr 2024 23:21:15 +0000 Subject: [PATCH] Add Tag to meta info --- include/utempl/meta_info.hpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/include/utempl/meta_info.hpp b/include/utempl/meta_info.hpp index 44ef97a..3117beb 100644 --- a/include/utempl/meta_info.hpp +++ b/include/utempl/meta_info.hpp @@ -11,28 +11,26 @@ struct Types {}; } // namespace impl -template -struct MetaInfoKey { - -}; +template +struct MetaInfoKey {}; -template +template struct MetaInfo { - static constexpr std::size_t kTypeId = loopholes::Counter(); + static constexpr std::size_t kTypeId = loopholes::Counter(); using Type = T; private: - static constexpr auto _ = loopholes::Injector{}, TypeList{}>{}; + static constexpr auto _ = loopholes::Injector{}, TypeList{}>{}; }; -template -inline constexpr std::size_t kTypeId = MetaInfo::kTypeId; +template +inline constexpr std::size_t kTypeId = MetaInfo::kTypeId; -template -using GetMetaInfo = MetaInfo{}>{}))::Type>; +template +using GetMetaInfo = MetaInfo{}>{}))::Type>; -template -using GetType = GetMetaInfo::Type; +template +using GetType = GetMetaInfo::Type; } // namespace utempl