Browse Source

entity: coding style

skypjack 1 month ago
parent
commit
80bb50c06d
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/entt/entity/entity.hpp

+ 5 - 3
src/entt/entity/entity.hpp

@@ -25,9 +25,11 @@ struct entt_traits<Type>: entt_traits<std::underlying_type_t<Type>> {
 };
 
 template<typename Type>
-requires requires { typename Type::entity_type; }
-         && std::convertible_to<Type, typename Type::entity_type>
-         && std::constructible_from<Type, typename Type::entity_type>
+requires requires {
+    typename Type::entity_type;
+    requires std::convertible_to<Type, typename Type::entity_type>;
+    requires std::constructible_from<Type, typename Type::entity_type>;
+}
 struct entt_traits<Type>
     : entt_traits<typename Type::entity_type> {
     using value_type = Type;