On 8 July 2015 at 10:46, Martin Nowak via Digitalmars-d <
[email protected]> wrote:

> On Saturday, 4 July 2015 at 10:47:17 UTC, Iain Buclaw wrote:
>
>> both cases to throw a compilation error (using static assert).  However
>>>>>
>>>> I'd like the core druntime team to be on board with this.
>>
>
> It makes sense to disallow them, but I wonder why they are allowed in C++.
>

They *aren't* allowed in C++.

GCC will give you a compiler warning if you attempt it, and stdc++ should
invoke a cxx_assert on it's use.

Iain

Reply via email to