diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/d2/qtd/Core.d	Wed Dec 23 16:17:22 2009 +0200
@@ -0,0 +1,10 @@
+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;
+}
+