| Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| 3 | #include "utils/labeled_tuple.hpp" | ||||
| 4 | |||||
| 5 | #include <iomanip> | ||||
| 6 | |||||
| 7 | namespace utils | ||||
| 8 | { | ||||
| 9 | |||||
| 10 | template <class... Args, class... Labels> | ||||
| 11 | inline void | ||||
| 12 | PrintTo(const LabeledTuple<std::tuple<Args...>, Labels...>& labeledTuple, | ||||
| 13 | std::ostream* os) | ||||
| 14 | { | ||||
| 15 | nlohmann::json json; | ||||
| 16 | to_json(json, labeledTuple); | ||||
| 17 | |||||
| 18 | (*os) << std::setw(2) << json; | ||||
| 19 | } | ||||
| 20 | |||||
| 21 | } // namespace utils | ||||