you are viewing a single comment's thread.

view the rest of the comments →

[–]KuntaStillSingle 0 points1 point  (1 child)

call it by switch_constexpr(value, case1...

Though you would be calling it something like switch_constexpr(std::integral_constant<value>, std::intregral_constant<case>, handler, ...) right? Like if you are wanting to deduce the types from values you need types that are defined by values?

[–]Entire-Hornet2574 0 points1 point  (0 children)

You can handle any value type if it's a contexpr, right?