remove all sizeof asserts
This commit is contained in:
parent
d51e75aec5
commit
6ad32fa6b3
|
@ -102,8 +102,6 @@ struct Event
|
||||||
assert(id == EventID.documentStart, "Only DocumentStart events have tag directives.");
|
assert(id == EventID.documentStart, "Only DocumentStart events have tag directives.");
|
||||||
return _tagDirectives;
|
return _tagDirectives;
|
||||||
}
|
}
|
||||||
|
|
||||||
static assert(Event.sizeof <= 64, "Event struct larger than expected");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -57,8 +57,6 @@ struct Mark
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static assert(Mark.sizeof == 4, "Unexpected Mark size");
|
|
||||||
|
|
||||||
// A struct storing parameters to the MarkedYAMLException constructor.
|
// A struct storing parameters to the MarkedYAMLException constructor.
|
||||||
struct MarkedYAMLExceptionData
|
struct MarkedYAMLExceptionData
|
||||||
{
|
{
|
||||||
|
|
|
@ -95,8 +95,6 @@ struct Token
|
||||||
/// Get string representation of the token ID.
|
/// Get string representation of the token ID.
|
||||||
@property string idString() @safe pure const {return id.to!string;}
|
@property string idString() @safe pure const {return id.to!string;}
|
||||||
}
|
}
|
||||||
static assert(Token.sizeof <= 32, "Token has unexpected size");
|
|
||||||
|
|
||||||
|
|
||||||
/// Construct a directive token.
|
/// Construct a directive token.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue