|
|
@@ -386,11 +386,10 @@ struct value_list_element<Index, value_list<Value, Other...>>
|
|
|
*/
|
|
|
template<auto Value, auto... Other>
|
|
|
struct value_list_element<0u, value_list<Value, Other...>> {
|
|
|
- /*! @brief Searched value. */
|
|
|
- static constexpr auto value = Value;
|
|
|
-
|
|
|
/*! @brief Searched type. */
|
|
|
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
|
|
|
|
|
|
-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> {};
|
|
|
|
|
|
-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...>> {};
|
|
|
|
|
|
-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> {};
|
|
|
|
|
|
-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...>> {};
|
|
|
|
|
|
#endif
|