Enforcing that Token is at most 32 bytes long.
This commit is contained in:
parent
e88842573f
commit
918395ea64
|
@ -77,6 +77,8 @@ struct Token
|
|||
/// Get string representation of the token ID.
|
||||
@property string idString() @safe pure const {return id.to!string;}
|
||||
}
|
||||
static assert(Token.sizeof <= 32, "Token has unexpected size");
|
||||
|
||||
|
||||
@safe pure nothrow @nogc:
|
||||
|
||||
|
|
Loading…
Reference in a new issue