diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 20:15:07 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 20:15:07 +0200 |
| commit | 04ba2f94eebb337b4e397008cbca387f9d76a361 (patch) | |
| tree | 484f085dfcfb82070f87098a5533fce00f5d7e86 /test | |
| parent | update .clang-format (diff) | |
| download | winapi-utf8-04ba2f94eebb337b4e397008cbca387f9d76a361.tar.gz winapi-utf8-04ba2f94eebb337b4e397008cbca387f9d76a361.zip | |
boost::format -> std::format
Diffstat (limited to 'test')
| -rw-r--r-- | test/convert.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/convert.cpp b/test/convert.cpp index fded6ba..66142ae 100644 --- a/test/convert.cpp +++ b/test/convert.cpp @@ -5,8 +5,6 @@ #include <winapi/utf8.hpp> -#include <boost/format.hpp> - // clang-format off // The order matters for older Boost versions. #include <boost/test/unit_test.hpp> @@ -14,6 +12,7 @@ #include <boost/test/data/monomorphic.hpp> // clang-format on +#include <format> #include <ostream> #include <string> #include <vector> @@ -21,7 +20,7 @@ namespace std { ostream& operator<<(ostream& os, unsigned char c) { - return os << boost::format("%|1$02x|") % static_cast<unsigned int>(c); + return os << std::format("{:02x}", static_cast<unsigned int>(c)); } ostream& operator<<(ostream& os, const vector<unsigned char>& cs) { |
