D-Programming-Language/phobos — pull request #956 by TurkeyMan (2012-11-17 16:14:32+00:00)
Title: Added useful Promote and Demote templates.

These templates are particularly useful when packing/unpacking data.
They come up a lot in my code, and are also used in std.simd (WIP), but I think they are more appropriate here.