Skip to content

Commit a77b34f

Browse files
committed
view: minor changes
1 parent c5ae1fc commit a77b34f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/entt/entity/view.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ class basic_view<get_t<Get...>, exclude_t<Exclude...>>
488488
* @tparam Args Storage types managed by the other view.
489489
* @param other A view to convert from.
490490
*/
491-
template<typename... Args, typename = std::enable_if_t<!std::is_same_v<basic_view, basic_view<Args...>>>>
491+
template<typename... Args>
492+
requires (!std::same_as<basic_view, basic_view<Args...>>)
492493
basic_view(const basic_view<Args...> &other) noexcept
493494
: basic_view{} {
494495
(storage_if(other.template storage<typename Get::element_type>()), ...);
@@ -945,7 +946,8 @@ class basic_view<get_t<Get>, exclude_t<>>
945946
* @tparam Args Storage types managed by the other view.
946947
* @param other A view to convert from.
947948
*/
948-
template<typename... Args, typename = std::enable_if_t<!std::is_same_v<basic_view, basic_view<Args...>>>>
949+
template<typename... Args>
950+
requires (!std::same_as<basic_view, basic_view<Args...>>)
949951
basic_view(const basic_view<Args...> &other) noexcept
950952
: base_type{} {
951953
storage_if(other.template storage<typename Get::element_type>());

0 commit comments

Comments
 (0)