ParseError.opCast

Boolean whether or not an error occured. If an error did not occur, message and location will not have meaningful values.

struct ParseError
bool
opCast
@safe pure
(
T
)
(
)
if (
is(T == bool)
)

Examples

auto error = ParseError("error occured!", 0);
assert(error); // conversion to $(D bool)

Meta