Category: proposal
-
Why we probably shouldn’t have constexpr conditional operator
The idea I had a great idea. We have constexpr if, but no constexpr conditional operator. Time for a proposal? Since we can do stuff like this: Wouldn’t it be cool if we could also do My motivation was that I had a std::variant visitor that was identical for all types except one. So instead … Continue reading Why we probably shouldn’t have constexpr conditional operator