zmq sender and receiver examples

This commit is contained in:
Bechir Braham
2024-04-04 15:51:18 +02:00
parent f772434072
commit 47cf462f3d
13 changed files with 506 additions and 115 deletions

View File

@ -20,6 +20,19 @@ template <typename T> std::ostream &operator<<(std::ostream &out, const std::vec
return out;
}
// operator overload for std::array
template <typename T, size_t N> std::ostream &operator<<(std::ostream &out, const std::array<T, N> &v) {
out << "[";
size_t last = N - 1;
for (size_t i = 0; i < N; ++i) {
out << v[i];
if (i != last)
out << ", ";
}
out << "]";
return out;
}
namespace aare {
namespace logger {