On 3/24/12, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote:
> Correction, it's:
> template isValue(T)
> {
>     enum bool isValue = is(typeof( { Value v; T t; v = t; } ))
>     || is(typeof( { BaseElement!Value v; T t; v = t; } ))
>     || is(BaseElement!Value == T);
> }

Last check not needed, so:
> template isValue(T)
> {
>     enum bool isValue = is(typeof( { Value v; T t; v = t; } ))
>     || is(typeof( { BaseElement!Value v; T t; v = t; } ));
> }

Anyway I'll stop spamming.

Reply via email to