add operator<< for packets (#14)
All checks were successful
Linux arm64 / Build (push) Successful in 16s
All checks were successful
Linux arm64 / Build (push) Successful in 16s
Reviewed-on: #14 Co-authored-by: Persson-dev <sim16.prib@gmail.com> Co-committed-by: Persson-dev <sim16.prib@gmail.com>
This commit was merged in pull request #14.
This commit is contained in:
@@ -14,8 +14,8 @@ std::string PrintMessage(const MessageBase<TBase, TOptions...>& a_Message);
|
||||
template <typename TBase, typename TActual>
|
||||
class MessageImplToStringBase : public TBase {
|
||||
protected:
|
||||
virtual std::string ToStringImpl() const override {
|
||||
return PrintMessage(static_cast<const TActual&>(*this));
|
||||
virtual std::ostream& OpOutImpl(std::ostream& a_Stream) const override{
|
||||
return a_Stream << static_cast<const TActual&>(*this);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user