From c119c749659de62898eff09a18a96471fa979073 Mon Sep 17 00:00:00 2001 From: moonshadow565 Date: Sun, 4 Dec 2022 00:09:08 +0100 Subject: [PATCH] workaround msvc 19.34 bug --- cslol-tools/lib/lol/patcher/utility/lineconfig.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cslol-tools/lib/lol/patcher/utility/lineconfig.hpp b/cslol-tools/lib/lol/patcher/utility/lineconfig.hpp index 7804aae9..f0856a0b 100644 --- a/cslol-tools/lib/lol/patcher/utility/lineconfig.hpp +++ b/cslol-tools/lib/lol/patcher/utility/lineconfig.hpp @@ -15,6 +15,7 @@ namespace LineConfigImpl { } } constexpr auto operator<=>(CTStr const&) const noexcept = default; + constexpr auto match(CTStr const& other) const noexcept -> bool { return *this == other; } }; template @@ -22,13 +23,13 @@ namespace LineConfigImpl { static constexpr auto NAME = name; T value = {}; template - requires(name == what) + requires(name.match(what)) constexpr auto get() && noexcept { return value; } template - requires(name == what) + requires(name.match(what)) constexpr auto& get() & noexcept { return value; } template - requires(name == what) + requires(name.match(what)) constexpr auto const& get() const& noexcept { return value; } };