Error: static if conditional cannot be at global scope

kris foo at bar.com
Wed Apr 12 11:13:00 PDT 2006


This is an unfixed DDOC bug:


/**

*/
struct AtoiT(T)
{
         static if (!is (T == char) && !is (T == wchar))
                    pragma (msg, "Template type must be char or wchar");
}


dmd -D

"Error: static if conditional cannot be at global scope"



More information about the Digitalmars-d-bugs mailing list