Код: Выделить всё
#include
#include
#include
#include
struct ignore
{
template
void operator()([[maybe_unused]]const T&)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78695300/how-to-write-an-overloaded-with-ignore-feature-while-visit-a-variant[/url]
Мобильная версия