Could having to use id variables be replaced with lambda parameters?
eg: instead of this
Id<string> text;
match(variant)(
pattern | as<string>(text) = [&] {
std::cout << "Text message: " << *text << std::endl;
})
this
match(variant)(
pattern | as<string> = [](const string& text) {
std::cout << "Text message: " << text << std::endl;
})
Could having to use id variables be replaced with lambda parameters?
eg: instead of this
this