isDefaultConstructorEnabled

Template to determine if provided Hook enables default constructor for Expected

@safe
template isDefaultConstructorEnabled (
Hook
) {
enum isDefaultConstructorEnabled;
enum isDefaultConstructorEnabled;
}

Examples

struct Foo {}
struct Bar { static immutable bool enableDefaultConstructor = true; }
static assert(!isDefaultConstructorEnabled!Foo);
static assert(isDefaultConstructorEnabled!Bar);

Meta