subsys: + operator<< for InitEvidence
This commit is contained in:
parent
50cf27b6a2
commit
6da0ceb35d
1 changed files with 7 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "xo/indentlog/scope.hpp"
|
||||
#include <iostream>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <string_view>
|
||||
|
|
@ -57,6 +58,12 @@ namespace xo {
|
|||
std::uint64_t evidence_ = 0;
|
||||
}; /*InitEvidence*/
|
||||
|
||||
inline std::ostream &
|
||||
operator<<(std::ostream & os, InitEvidence x) {
|
||||
os << "<init-evidence " << x.evidence() << ">";
|
||||
return os;
|
||||
} /*operator<<*/
|
||||
|
||||
/* Goals:
|
||||
* 1. provide for code that must run once (and only once)
|
||||
* to initialize subsystems
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue