Reporting unsupported template instantiation
BCS
none at anon.com
Wed Aug 4 20:17:11 PDT 2010
Hello Kagamin,
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmar
> s.D&article_id=114518
>
> Is there a way to report a custom error message for unsupported
> template instantiations?
>
template Foo(T)
{
static assert(Chcek!(T), "message");
...
}
template Bar(T) if (is( T == U))
{
...
}
template Bar(T) { static assert(false, "message"); }
--
... <IXOYE><
More information about the Digitalmars-d-learn
mailing list