#include #include namespace larra::xmpp::serialization { namespace iq = larra::xmpp::iq; template <> constexpr auto kSerializationConfig = SerializationConfig{}; template <> constexpr auto kSerializationConfig = SerializationConfig{}.With<"items">({Config>{}}); } // namespace larra::xmpp::serialization namespace larra::xmpp::iq { namespace S = larra::xmpp::serialization; auto operator<<(xmlpp::Element* element, const RosterItem& self) -> void { S::Serialize(element, self); } auto RosterItem::Parse(xmlpp::Element* element) -> RosterItem { return S::Parse(element); } auto operator<<(xmlpp::Element* element, const Roster& self) -> void { element->set_attribute("xmlns", Roster::kDefaultNamespace); S::Serialize(element, self); } auto Roster::Parse(xmlpp::Element* element) -> Roster { return S::Parse(element); } } // namespace larra::xmpp::iq