Proposal: static template(fail)
Bill Baxter
dnewsgroup at billbaxter.com
Thu Dec 13 12:48:22 PST 2007
Janice Caron wrote:
> On 12/13/07, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
>> All you need is *anything* that would generate an ordinary compiler
>> error.
>
> The idea is /not/ to generate a compiler error. :-)
Right, and it won't because as you've been reiterating "substitution
error is not a failure". If the template results in a something that's
an ordinary syntax error then it's just a substitution failure. "static
assert" is special in that it short circuits that behavior.
--bb
More information about the Digitalmars-d
mailing list