3 ms·
Yeah look at this eye watering line: using ret_t = first_non_void<decltype(fnc.template operator()<Elts>())...>;
by jryan49 2y ago
Yeah look at this eye watering line:
using ret_t = first_non_void<decltype(fnc.template operator()<Elts>())...>;
- dataflow 2y agoOf all the C++ complexities that's not the one I would complain about. All it's doing is getting the first non-void declared return type of the operator() invocations, each specialized with the Elts template parameter. It reads basically as you'd write it in English. There's much more eye-watering stuff out there!
- deleted 2y ago[deleted]
- greatgib 2y agoFor me the following one is insane: constexpr void operator>>(F fnc) const { (fnc.template operator()<Elts>(), ...); }
- gpderetta 2y agoI think that the choice of overloading operator>> is from the blog author though, it is not from the introspection proposal.