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
@safe pure
bool
opCast
(
T
)
()
if (
is(T == bool)
)

Examples

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

Meta