Skip to content

Commit

Permalink
Drop ranges library
Browse files Browse the repository at this point in the history
  • Loading branch information
shg8 committed Apr 10, 2024
1 parent 0c47b52 commit 3dfa8f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/CSVWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <sstream>
#include <unordered_map>
#include <cstdint>
#include <ranges>

class CSVWriter {
private:
Expand Down Expand Up @@ -57,8 +56,8 @@ class CSVWriter {

void log(const std::unordered_map<std::string, uint64_t>& row) {
if (columns.empty()) {
for (const auto& columnName : std::ranges::views::keys(row)) {
columns.push_back(columnName);
for (const auto& [key, value] : row) {
columns.push_back(key);
}
log(columns);
}
Expand Down

0 comments on commit 3dfa8f7

Please sign in to comment.