diff --git a/examples/src/attributes.cpp b/examples/src/attributes.cpp index 773e083..6eac821 100644 --- a/examples/src/attributes.cpp +++ b/examples/src/attributes.cpp @@ -29,9 +29,9 @@ static_assert(utempl::GetAttributes() struct SomeOtherStruct { static_assert(utempl::OpenStruct()); - utempl::FieldAttribute, int> field1; - utempl::FieldAttribute> field2; - utempl::FieldAttribute, void> field3; + utempl::FieldAttribute field1; + utempl::FieldAttribute field2; + utempl::FieldAttribute field3; static_assert(utempl::CloseStruct()); }; diff --git a/include/utempl/attributes.hpp b/include/utempl/attributes.hpp index ff27d63..ec0ae86 100644 --- a/include/utempl/attributes.hpp +++ b/include/utempl/attributes.hpp @@ -48,12 +48,6 @@ struct NoInfo { }; -template -struct FieldType { - using Type = T; -}; - - namespace impl { template @@ -74,7 +68,7 @@ template < typename Current = decltype(GetCurrentTagType())::Type, auto = AddTypeToTag, typename FieldAttributeData::Type, decltype(f)>() > -consteval auto FieldAttribute() -> T::Type; +consteval auto FieldAttribute() -> T; } // namespace impl