Merge pull request #207 from Herringway/remove-size-asserts
remove all sizeof asserts merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
commit
a8734185d1
|
@ -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