Код: Выделить всё
#include
#include
#include
#include
struct MyThread : std::jthread
{
MyThread() : jthread([this] {
std::cout
Источник: [url]https://stackoverflow.com/questions/78159940/can-i-access-the-value-of-a-derived-class-member-in-a-function-running-in-a-std[/url]
Мобильная версия