core.atomics and handling of backward MemoryOrders
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 06:58:11 PDT 2015
On 8 July 2015 at 10:46, Martin Nowak via Digitalmars-d <
digitalmars-d at puremagic.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150708/06ec86b8/attachment-0001.html>
More information about the Digitalmars-d
mailing list