August 05, 2010 Reporting unsupported template instantiation | ||||
---|---|---|---|---|
| ||||
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=114518 Is there a way to report a custom error message for unsupported template instantiations? |
August 05, 2010 Re: Reporting unsupported template instantiation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | 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>< |
Copyright © 1999-2021 by the D Language Foundation