[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] verify: use _Static_assert if available
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] verify: use _Static_assert if available |
Date: |
Fri, 08 Apr 2011 17:30:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 05/04/11 03:26, Paul Eggert wrote:
> This gnulib patch modifies "verify" to use C1X's _Static_assert if
> running GCC 4.6.0 or later, which generates easier-to-read
> diagnostics. I haven't pushed this yet because I thought it wouldn't
> hurt to get more pairs of eyes to look at it.
So C++0x support in gcc 4.6.0 is using static_assert()
while C1X support is using _Static_assert().
Why the divergence in the standards?
Do we need to enforce the gcc option --std=c1x
to enable this as you do?
cheers,
Pádraig.