Replace `make_args_checked with make_format_args` (#2760)

* Replace make_args_checked to make_format_args

* Deprecate legacy make_args_checked
This commit is contained in:
Vladislav Shchapov
2022-02-14 09:13:35 +05:00
committed by GitHub
parent c48353cb75
commit 10e3b83a75
6 changed files with 21 additions and 31 deletions

View File

@@ -113,8 +113,7 @@ binary footprint, for example (https://godbolt.org/z/oba4Mc):
template <typename S, typename... Args>
void log(const char* file, int line, const S& format, Args&&... args) {
vlog(file, line, format,
fmt::make_args_checked<Args...>(format, args...));
vlog(file, line, format, fmt::make_format_args(args...));
}
#define MY_LOG(format, ...) \
@@ -125,8 +124,6 @@ binary footprint, for example (https://godbolt.org/z/oba4Mc):
Note that ``vlog`` is not parameterized on argument types which improves compile
times and reduces binary code size compared to a fully parameterized version.
.. doxygenfunction:: fmt::make_args_checked(const S&, const remove_reference_t<Args>&...)
.. doxygenfunction:: fmt::make_format_args(const Args&...)
.. doxygenclass:: fmt::format_arg_store