stl: cannot specialize variables across namespaces
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
# include "iterator.hpp"
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_view<entt::iterable_adaptor<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::iterable_adaptor<Args...>>{true};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
# include "fwd.hpp"
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_borrowed_range<entt::basic_view<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::basic_view<Args...>>{true};
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_borrowed_range<entt::basic_group<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::basic_group<Args...>>{true};
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_view<entt::basic_view<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::basic_view<Args...>>{true};
|
||||
|
||||
template<class... Args>
|
||||
inline constexpr bool entt::stl::ranges::enable_view<entt::basic_group<Args...>>{true};
|
||||
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::basic_group<Args...>>{true};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -9,10 +9,12 @@
|
||||
/*! @cond ENTT_INTERNAL */
|
||||
namespace entt::stl::ranges {
|
||||
|
||||
using std::ranges::enable_borrowed_range;
|
||||
using std::ranges::enable_view;
|
||||
// nothing to import (yet)
|
||||
|
||||
} // namespace entt::stl::ranges
|
||||
|
||||
# define ENTT_STL_RANGES std::ranges
|
||||
|
||||
/*! @endcond */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user