view d2/qtd/Core.d @ 311:8674fd5f34f4 lifetime

Added d1/d2 top directories
author maxter <spambox@d-coding.com>
date Wed, 23 Dec 2009 16:17:22 +0200
parents
children 80b52f5e97b6
line wrap: on
line source
module qt.Core;

/**
	Casts from to type $(D_PARAM U), bypassing dynamic checks.
*/
U static_cast(U, T)(T from)
{
	return cast(U)cast(void*)from;
}