Ver código fonte

view: minor changes

Michele Caini 2 anos atrás
pai
commit
4aef168a50
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/entt/entity/view.hpp

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

@@ -221,13 +221,13 @@ class basic_view;
  */
  */
 template<typename... Get, typename... Exclude>
 template<typename... Get, typename... Exclude>
 class basic_view<get_t<Get...>, exclude_t<Exclude...>> {
 class basic_view<get_t<Get...>, exclude_t<Exclude...>> {
+    template<typename, typename, typename>
+    friend class basic_view;
+
     static constexpr auto offset = sizeof...(Get);
     static constexpr auto offset = sizeof...(Get);
     using base_type = std::common_type_t<typename Get::base_type..., typename Exclude::base_type...>;
     using base_type = std::common_type_t<typename Get::base_type..., typename Exclude::base_type...>;
     using underlying_type = typename base_type::entity_type;
     using underlying_type = typename base_type::entity_type;
 
 
-    template<typename, typename, typename>
-    friend class basic_view;
-
     template<typename Type>
     template<typename Type>
     static constexpr std::size_t index_of = type_list_index_v<std::remove_const_t<Type>, type_list<typename Get::value_type..., typename Exclude::value_type...>>;
     static constexpr std::size_t index_of = type_list_index_v<std::remove_const_t<Type>, type_list<typename Get::value_type..., typename Exclude::value_type...>>;