Closed
Description
Would this be possible?
pub enum Reply<V, StopReason> {
Reply(V),
Stop(StopReason),
}
pub static Continue<StopReason>: Reply<(), StopReason> = Reply(());
I guess it would be less useful than the C++14 proposal seeing as our constexprs are currently so limited.