Rafał Sarnikowski

Results 6 comments of Rafał Sarnikowski

Yes, sorry I made a mistake in the example above. ```c++ return magic_enum::enum_switch( overloaded{ []( my_enum::val1 arg ) -> int { /* handle val1 enum */ return 1; }, [](...

ok, but I still need to specify the return type explicitly. In case of `std::visit` as long as all the lambdas in overload return the same value there is no...

Yes, but it's still doesn't give me the flexibility of std::visit, what I'd like to actually do is ```c++ // probably pseudocode :) auto switcher = overloaded{ [&]( auto lhsType,...

@falemagn I can and I'm doing it but it would be easier and clear not using it :)

I understand your point, but there are different cases not just this one and sometimes you don't have a comfort to refactor whole code base to not use enum and...

> @Sarna555 #212 I tried to improve the deduction of the return type of the enum_switch, but the function signature changed a little > > enum_switch will try to deduce...