j
k
j a
j l
pfultz2 (Paul) wrote:
I use syntax like this: case_<void>(v)( [](A & a){ cout << "it's a A!"; } [](B & b){ cout << "oh, a B!"; } [](C & c){ cout << "ah yes, a C!"; } [](auto & d){ cout << "a default!"; } );
I use syntax like this:
case_<void>(v)( [](A & a){ cout << "it's a A!"; } [](B & b){ cout << "oh, a B!"; } [](C & c){ cout << "ah yes, a C!"; } [](auto & d){ cout << "a default!"; } );
Shouldn't it be switch_ instead of case_?
Back to the thread
Back to the list