[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: |
Sat, 09 Apr 2011 11:40:51 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 09/04/11 01:14, Bruno Haible wrote:
> Hi Paul,
>
>>> +# if 0 && defined __cplusplus
>>> +# define HAVE_STATIC_ASSERT 1
>>> +# endif
>>
>> That "0 &&" looks wrong: did you put it in for debugging,
>> and intend to remove it before installing?
>
> The intent of this "0" condition was to be a placeholder until GCC 4.7
> or 4.8 or whatever release will support 'static_assert' in C++ mode.
>
> I've now committed the patch with a different placeholder and a comment:
>
>
> /* The condition (99 < __GNUC__) is temporary, until we know about the
> first G++ release that supports static_assert. */
> # if (99 < __GNUC__) && defined __cplusplus
> # define HAVE_STATIC_ASSERT 1
> # endif
>
g++ supports static_assert since 4.3 I think