Template to determine if provided Hook enables void values for Expected
struct Hook { static immutable bool enableVoidValue = false; } assert(!ok().hasError); // void values are enabled by default static assert(!__traits(compiles, ok!(string, Hook)())); // won't compile
See Implementation
Template to determine if provided Hook enables void values for Expected