This commit is contained in:
parent
b60856055e
commit
03bf0b90d4
1 changed files with 8 additions and 4 deletions
|
@ -34,10 +34,6 @@ constexpr auto Serialize(xmlpp::Element* node, const T& element) -> void
|
|||
template <typename T>
|
||||
constexpr auto Serialize(xmlpp::Element* node, const T& element) -> void;
|
||||
|
||||
struct AttributeConfig {
|
||||
auto operator==(const AttributeConfig&) const -> bool = default;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct MetaInfo {
|
||||
static constexpr std::size_t kSize = boost::pfr::tuple_size_v<T>;
|
||||
|
@ -71,6 +67,14 @@ struct Config {
|
|||
std::optional<T> defaultValue;
|
||||
};
|
||||
|
||||
struct AttributeConfig {
|
||||
auto operator==(const AttributeConfig&) const -> bool = default;
|
||||
template <typename T>
|
||||
constexpr auto operator==(const Config<T>&) const -> bool {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Config<std::string> {
|
||||
std::optional<std::string_view> defaultValue;
|
||||
|
|
Loading…
Reference in a new issue