Существует ли способ отказаться от перегрузки перегрузки std :: format и std :: vformatC++

Программы на C++. Форум разработчиков
Anonymous
Существует ли способ отказаться от перегрузки перегрузки std :: format и std :: vformat

Сообщение Anonymous »

Во-первых, какой-то демонстрационный код: < /p>

Код: Выделить всё

#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-disabmiguate-overloads-wrapping-stdformat-and-stdvformat[/url]

Вернуться в «C++»