diff --git a/library/include/larra/serialization/auto.hpp b/library/include/larra/serialization/auto.hpp index 61ac835..9859c06 100644 --- a/library/include/larra/serialization/auto.hpp +++ b/library/include/larra/serialization/auto.hpp @@ -34,10 +34,6 @@ constexpr auto Serialize(xmlpp::Element* node, const T& element) -> void template constexpr auto Serialize(xmlpp::Element* node, const T& element) -> void; -struct AttributeConfig { - auto operator==(const AttributeConfig&) const -> bool = default; -}; - template struct MetaInfo { static constexpr std::size_t kSize = boost::pfr::tuple_size_v; @@ -71,6 +67,14 @@ struct Config { std::optional defaultValue; }; +struct AttributeConfig { + auto operator==(const AttributeConfig&) const -> bool = default; + template + constexpr auto operator==(const Config&) const -> bool { + return false; + } +}; + template <> struct Config { std::optional defaultValue;