From 6ecf6935d81ce6fc22b4034c06951356a7ae574b Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sun, 28 Sep 2025 21:57:18 +0800 Subject: [PATCH] fix: use new format to replace all printf as much as possible. - ironpad is a very conservative module so I don't want to bring any changes for it except bug fix. --- src/yycc/carton/ironpad.cpp | 1 + src/yycc/patch/format.hpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yycc/carton/ironpad.cpp b/src/yycc/carton/ironpad.cpp index 70286bc..f825a0b 100644 --- a/src/yycc/carton/ironpad.cpp +++ b/src/yycc/carton/ironpad.cpp @@ -27,6 +27,7 @@ #define REINTERPRET ::yycc::string::reinterpret #define WINFCT ::yycc::windows::winfct #define FOPEN ::yycc::patch::fopen + using namespace std::literals::string_view_literals; namespace yycc::carton::ironpad { diff --git a/src/yycc/patch/format.hpp b/src/yycc/patch/format.hpp index afea7a7..ae3cc35 100644 --- a/src/yycc/patch/format.hpp +++ b/src/yycc/patch/format.hpp @@ -19,8 +19,6 @@ namespace yycc::patch::format { - // TODO: all use of OP::printf should also switch to this function if possible. - template std::string format(std::format_string fmt, Args&&... args) { return std::vformat(fmt.get(), std::make_format_args(args...));