From 03bf0b90d4460eb6a65a06a71541ba87625c4885 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 8 Nov 2024 11:51:22 +0000 Subject: [PATCH] . --- library/include/larra/serialization/auto.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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;