Make FileStream small enough to fit into an InterfaceProxy.

This commit is contained in:
Sönke Ludwig 2016-12-26 21:28:36 +01:00
parent 003331cc90
commit 35a94412d0
2 changed files with 27 additions and 20 deletions

View file

@ -76,7 +76,7 @@ struct InterfaceProxy(I) if (is(I == interface)) {
this(O)(O object) @trusted
{
static assert(O.sizeof <= m_value.length, "Object is too big to be stored in an InterfaceProxy.");
static assert(O.sizeof <= m_value.length, "Object ("~O.stringof~") is too big to be stored in an InterfaceProxy.");
import std.conv : emplace;
m_intf = ProxyImpl!O.get();
emplace!O(m_value[0 .. O.sizeof]);