On Thursday, 28 March 2013 at 22:22:49 UTC, Chris Cain wrote:
---
ubyte[T.sizeof] toUbytes(T)(T val) @safe {
    ubyte[T.sizeof] buf;
    std.bitmanip.append!T(buf[], val);
    return buf;
}
---

This should be:

ubyte[T.sizeof] toUbytes(T)(T val) @safe {
    ubyte[T.sizeof] buf;
    import std.bitmanip : append;
    append!T(buf[], val);
    return buf;
}

Reply via email to