On 26 November 2012 15:56, jerro <a@a.com> wrote:
You can also check if it is known at compile time like this:That's sooo brutal! But it works, I'll use the first one, the second
depends on i being an int.
template knownAtCompileTime(alias a)
{
enum knownAtCompileTime = is(typeof({ enum e = a; }));
}