diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 20:09:59 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 20:19:01 +0200 |
| commit | 6c287673ed3163d70ced1ec067526758337fa67c (patch) | |
| tree | 2a542b3ce7ddfd73e3a2c9a02fb57fae4c31ffd4 /test/echo.cpp | |
| parent | update .git-blame-ignore-revs (diff) | |
| download | winapi-common-6c287673ed3163d70ced1ec067526758337fa67c.tar.gz winapi-common-6c287673ed3163d70ced1ec067526758337fa67c.zip | |
boost::format -> std::format
Diffstat (limited to 'test/echo.cpp')
| -rw-r--r-- | test/echo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/echo.cpp b/test/echo.cpp index 7354e7e..858ee3a 100644 --- a/test/echo.cpp +++ b/test/echo.cpp @@ -10,6 +10,7 @@ #include <fcntl.h> // clang-format on +#include <format> #include <iostream> #include <string> @@ -23,12 +24,12 @@ int wmain(int argc, wchar_t* argv[]) { if (argc > 0) { for (int i = 0; i < argc; ++i) { - std::wcout << argv[i] << L'\n'; + std::wcout << std::format(L"{}\n", argv[i]); } } else { std::wstring line; while (std::getline(std::wcin, line)) { - std::wcout << line << L'\n'; + std::wcout << std::format(L"{}\n", line); } } return 0; |
