skypjack 1 هفته پیش
والد
کامیت
2d69562088
2فایلهای تغییر یافته به همراه14 افزوده شده و 6 حذف شده
  1. 6 2
      src/entt/core/ranges.hpp
  2. 8 4
      src/entt/entity/ranges.hpp

+ 6 - 2
src/entt/core/ranges.hpp

@@ -7,11 +7,15 @@
 #    include <ranges>
 #    include "iterator.hpp"
 
+namespace std::ranges {
+
 template<class... Args>
-inline constexpr bool std::ranges::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
+inline constexpr bool enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
 
 template<class... Args>
-inline constexpr bool std::ranges::enable_view<entt::iterable_adaptor<Args...>>{true};
+inline constexpr bool enable_view<entt::iterable_adaptor<Args...>>{true};
+
+} // namespace std::ranges
 
 #endif
 

+ 8 - 4
src/entt/entity/ranges.hpp

@@ -7,17 +7,21 @@
 #    include <ranges>
 #    include "fwd.hpp"
 
+namespace std::ranges {
+
 template<class... Args>
-inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_view<Args...>>{true};
+inline constexpr bool enable_borrowed_range<entt::basic_view<Args...>>{true};
 
 template<class... Args>
-inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_group<Args...>>{true};
+inline constexpr bool enable_borrowed_range<entt::basic_group<Args...>>{true};
 
 template<class... Args>
-inline constexpr bool std::ranges::enable_view<entt::basic_view<Args...>>{true};
+inline constexpr bool enable_view<entt::basic_view<Args...>>{true};
 
 template<class... Args>
-inline constexpr bool std::ranges::enable_view<entt::basic_group<Args...>>{true};
+inline constexpr bool enable_view<entt::basic_group<Args...>>{true};
+
+} // namespace std::ranges
 
 #endif