Код: Выделить всё
#include
#include
// OVERLOAD 1
template
inline void write(const std::format_string &fmtStr, Ts &&...args)
{
std::string msg{std::format(fmtStr, std::forward(args)...)};
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79388142/is-there-a-way-to-disambiguate-overloads-wrapping-stdformat-and-stdvformat[/url]
Мобильная версия