add tests for zmqheader and remove simdjson warnings

This commit is contained in:
Bechir
2024-04-05 15:22:31 +02:00
parent 35d2b274f4
commit 3c58039502
6 changed files with 161 additions and 16 deletions

View File

@ -3,6 +3,7 @@
#include <fstream>
#include <iostream>
#include <vector>
#include <map>
#define LOCATION std::string(__FILE__) + std::string(":") + std::to_string(__LINE__) + ":" + std::string(__func__) + ":"
@ -32,6 +33,17 @@ template <typename T, size_t N> std::ostream &operator<<(std::ostream &out, cons
out << "]";
return out;
}
// operator overlaod for std::map
template <typename K, typename V> std::ostream &operator<<(std::ostream &out, const std::map<K, V> &v) {
out << "{";
size_t i = 0;
for (auto &kv : v) {
out << kv.first << ": " << kv.second << ((++i!=v.size())?", ":"");
}
out << "}";
return out;
}
namespace aare {