From ab13ab5f71a5b09de3b9526feca2ed7c564cee7e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Feb 2025 05:17:47 +0100 Subject: switch to Corrade pair impl from stl --- entity/constraints.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'entity/constraints.hpp') diff --git a/entity/constraints.hpp b/entity/constraints.hpp index 6a5587d5..0bfc2f15 100644 --- a/entity/constraints.hpp +++ b/entity/constraints.hpp @@ -1,8 +1,7 @@ #pragma once #include "compat/limits.hpp" #include "erased-constraints.hpp" -#include -#include +#include #include namespace floormat::entities::limit_detail { @@ -52,7 +51,7 @@ template struct range T max = limit_detail::limit_traits::max(); constexpr operator erased_constraints::range() const noexcept; - constexpr operator std::pair() const noexcept; + constexpr operator Pair() const noexcept; constexpr bool operator==(const range&) const noexcept = default; }; @@ -125,7 +124,7 @@ template constexpr range::operator erased_constraints::range() const noexcept { return erased_range_from_range(min, max); } -template constexpr range::operator std::pair() const noexcept { return { min, max }; } +template constexpr range::operator Pair() const noexcept { return { min, max }; } template<> struct range { constexpr operator erased_constraints::range() const noexcept { return {}; } }; template<> struct range { constexpr operator erased_constraints::range() const noexcept { return {}; } }; -- cgit v1.2.3