Concepts vs template constraints - the practical approach

Denis Shelomovskij verylonglogin.reg at gmail.com
Sun Nov 20 10:58:38 PST 2011


> void myfunction(A)(A arr)
> if(__traits(compiles, verifyMyConcept!(A)))
> {
> }

It should be
---
void myfunction(A)(A arr)
{
     verifyMyConcept!A;
}
---
to see the error messages.


More information about the Digitalmars-d mailing list