8 Apr
2019
8 Apr
'19
1:29 p.m.
niedz., 7 kwi 2019 o 14:10 Peter Dimov via Boost
Andrzej Krzemienski wrote:
According to the specs, the following should work:
``` void f() {} variant2::visit(f); ``` which is not incorrect, but strange.
This is also the case with std::variant if I'm not mistaken? The purpose is probably to support variant<> parameter packs in a consistent way, even when the pack is empty.
Yes, this is also the case with std::variant. Regards, &rzej;