Michele Caini 2 лет назад
Родитель
Сommit
1f24fea21a
1 измененных файлов с 6 добавлено и 7 удалено
  1. 6 7
      src/entt/core/type_traits.hpp

+ 6 - 7
src/entt/core/type_traits.hpp

@@ -386,11 +386,10 @@ struct value_list_element<Index, value_list<Value, Other...>>
  */
  */
 template<auto Value, auto... Other>
 template<auto Value, auto... Other>
 struct value_list_element<0u, value_list<Value, Other...>> {
 struct value_list_element<0u, value_list<Value, Other...>> {
-    /*! @brief Searched value. */
-    static constexpr auto value = Value;
-
     /*! @brief Searched type. */
     /*! @brief Searched type. */
     using type = decltype(Value);
     using type = decltype(Value);
+    /*! @brief Searched value. */
+    static constexpr auto value = Value;
 };
 };
 
 
 /**
 /**
@@ -906,16 +905,16 @@ using nth_argument_t = typename nth_argument<Index, Candidate>::type;
 
 
 } // namespace entt
 } // namespace entt
 
 
-template <typename... Type>
+template<typename... Type>
 struct std::tuple_size<entt::type_list<Type...>>: std::integral_constant<std::size_t, entt::type_list<Type...>::size> {};
 struct std::tuple_size<entt::type_list<Type...>>: std::integral_constant<std::size_t, entt::type_list<Type...>::size> {};
 
 
-template <std::size_t Index, typename... Type>
+template<std::size_t Index, typename... Type>
 struct std::tuple_element<Index, entt::type_list<Type...>>: entt::type_list_element<Index, entt::type_list<Type...>> {};
 struct std::tuple_element<Index, entt::type_list<Type...>>: entt::type_list_element<Index, entt::type_list<Type...>> {};
 
 
-template <auto... Value>
+template<auto... Value>
 struct std::tuple_size<entt::value_list<Value...>>: std::integral_constant<std::size_t, entt::value_list<Value...>::size> {};
 struct std::tuple_size<entt::value_list<Value...>>: std::integral_constant<std::size_t, entt::value_list<Value...>::size> {};
 
 
-template <std::size_t Index, auto... Value>
+template<std::size_t Index, auto... Value>
 struct std::tuple_element<Index, entt::value_list<Value...>>: entt::value_list_element<Index, entt::value_list<Value...>> {};
 struct std::tuple_element<Index, entt::value_list<Value...>>: entt::value_list_element<Index, entt::value_list<Value...>> {};
 
 
 #endif
 #endif