aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/client.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 21:10:58 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 21:19:12 +0200
commit8c4e17dbec3f443ec9a8dd04729f9503c1f758ad (patch)
tree5dd5b1c6ec0436f95e7b29203ed9d1cbcc7e14aa /client/client.hpp
parentupgrade to <filesystem> (diff)
downloadmath-server-8c4e17dbec3f443ec9a8dd04729f9503c1f758ad.tar.gz
math-server-8c4e17dbec3f443ec9a8dd04729f9503c1f758ad.zip
upgrade to std::format
Diffstat (limited to '')
-rw-r--r--client/client.hpp3
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;
});