Enforcing that Token is at most 32 bytes long.

This commit is contained in:
Ferdinand Majerech 2014-07-25 03:33:27 +02:00
parent e88842573f
commit 918395ea64

View file

@ -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: