This commit is contained in:
parent
58ab1eae0a
commit
cf8957fed0
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue