.
All checks were successful
PR Check / on-push-commit-check (push) Successful in 14m24s

This commit is contained in:
sha512sum 2024-11-08 12:17:29 +00:00
parent 58ab1eae0a
commit cf8957fed0

View file

@ -67,6 +67,8 @@ struct Config {
std::optional<T> defaultValue; std::optional<T> defaultValue;
}; };
// GCC workaround: operator==
struct AttributeConfig { struct AttributeConfig {
auto operator==(const AttributeConfig&) const -> bool = default; auto operator==(const AttributeConfig&) const -> bool = default;
template <typename T> template <typename T>
@ -79,6 +81,11 @@ struct AttributeConfig {
} }
}; };
template <typename T>
constexpr auto operator==(const Config<T>&, const Config<T>&) -> bool {
return false;
}
template <> template <>
struct Config<std::string> { struct Config<std::string> {
std::optional<std::string_view> defaultValue; std::optional<std::string_view> defaultValue;