Код: Выделить всё
#include
#include
#include
void f(std::variant v) {
if (std::holds_alternative(v))
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79165132/possible-msvc-c17-bug-while-initializing-stdstring-alternative-in-stdvaria[/url]
Мобильная версия