Код: Выделить всё
struct Foo
{
void bar(const std::string& lvalue)
{
std::cout
template
std::thread wrapThread(F &&f, Args &&...args)
{
return std::thread([](std::decay_t &&f, std::decay_t &&...args) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79397688/trying-to-make-a-template-with-perfect-forward-but-compiler-isnt-able-to-deduc[/url]
Мобильная версия