Skip to content

Commit

Permalink
workaround msvc 19.34 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Dec 3, 2022
1 parent aef5803 commit c119c74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cslol-tools/lib/lol/patcher/utility/lineconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@ namespace LineConfigImpl {
}
}
constexpr auto operator<=>(CTStr const&) const noexcept = default;
constexpr auto match(CTStr const& other) const noexcept -> bool { return *this == other; }
};

template <typename T, CTStr name>
struct Field {
static constexpr auto NAME = name;
T value = {};
template <CTStr what>
requires(name == what)
requires(name.match(what))
constexpr auto get() && noexcept { return value; }
template <CTStr what>
requires(name == what)
requires(name.match(what))
constexpr auto& get() & noexcept { return value; }
template <CTStr what>
requires(name == what)
requires(name.match(what))
constexpr auto const& get() const& noexcept { return value; }
};

Expand Down

0 comments on commit c119c74

Please sign in to comment.