mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-21 19:27:58 +02:00
add tests for zmqheader and remove simdjson warnings
This commit is contained in:
@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user