Add missing log_dump handler for std::vector<>

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
Claire Xenia Wolf 2022-10-20 13:50:25 +02:00
parent 6781746872
commit be1a12595a
1 changed files with 12 additions and 0 deletions

View File

@ -419,6 +419,18 @@ static inline void log_dump_val_worker(pool<K, OPS> &v) {
log(" }");
}
template<typename K>
static inline void log_dump_val_worker(std::vector<K> &v) {
log("{");
bool first = true;
for (auto &it : v) {
log(first ? " " : ", ");
log_dump_val_worker(it);
first = false;
}
log(" }");
}
template<typename T>
static inline void log_dump_val_worker(T *ptr) { log("%p", ptr); }