Backported to VS2013 using a metaprogrammed emulation of unrestricted unions. Works surprisingly well considering.

Ok I fixed the unnecessary template declaration.