only use stream for serialisation
Some checks failed
Linux arm64 / Build (push) Failing after 12s

This commit is contained in:
2025-03-13 16:08:53 +01:00
parent 205c09a338
commit a04dc67213
11 changed files with 148 additions and 60 deletions

View File

@@ -133,12 +133,12 @@ class MessageInterfaceWriteIdBase : public TBase {
template <typename TBase>
class MessageInterfaceToStringBase : public TBase {
public:
std::string ToString() const {
return ToStringImpl();
friend std::ostream& operator<<(std::ostream& a_Stream, const MessageInterfaceToStringBase& a_Message) {
return a_Message.OpOutImpl(a_Stream);
}
protected:
virtual std::string ToStringImpl() const = 0;
virtual std::ostream& OpOutImpl(std::ostream& a_Stream) const = 0;
};
} // namespace details