Mercurial > projects > dstress
changeset 458:0d783e863226
static assert inside templated class/struct
Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
2005-04-20
news:3m1hj2-ni3.ln1@lnews.kuehne.cn
author | thomask |
---|---|
date | Wed, 20 Apr 2005 04:15:53 +0000 |
parents | 0a38b9e8c56b |
children | 05fc069b9fd1 |
files | nocompile/assert_08.d nocompile/assert_09.d |
diffstat | 2 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/assert_08.d Wed Apr 20 04:15:53 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> +// @date@ 2005-04-20 +// @uri@ news:3m1hj2-ni3.ln1@lnews.kuehne.cn + +// __DTSRESS_ELINE__ 14 + +module dstress.nocompile.assert_08; + +class A (T){ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/assert_09.d Wed Apr 20 04:15:53 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> +// @date@ 2005-04-20 +// @uri@ news:3m1hj2-ni3.ln1@lnews.kuehne.cn + +// __DTSRESS_ELINE__ 14 + +module dstress.nocompile.assert_09; + +struct A (T){ + static assert(0); +}