diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 21:10:58 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 21:19:12 +0200 |
| commit | 8c4e17dbec3f443ec9a8dd04729f9503c1f758ad (patch) | |
| tree | 5dd5b1c6ec0436f95e7b29203ed9d1cbcc7e14aa /client/client.hpp | |
| parent | upgrade to <filesystem> (diff) | |
| download | math-server-8c4e17dbec3f443ec9a8dd04729f9503c1f758ad.tar.gz math-server-8c4e17dbec3f443ec9a8dd04729f9503c1f758ad.zip | |
upgrade to std::format
Diffstat (limited to 'client/client.hpp')
| -rw-r--r-- | client/client.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/client.hpp b/client/client.hpp index 4c6894e..acf3e8c 100644 --- a/client/client.hpp +++ b/client/client.hpp @@ -9,6 +9,7 @@ #include "settings.hpp" #include "transport.hpp" +#include <format> #include <iostream> #include <string> #include <utility> @@ -26,7 +27,7 @@ public: void run() { m_input_reader->for_each_input([this](const std::string& input) { m_transport->send_query(input, [](const std::string& reply) { - std::cout << reply << '\n'; + std::cout << std::format("{}\n", reply); }); return true; }); |
