bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’


From: Bruno Haible
Subject: Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’
Date: Wed, 14 Sep 2022 08:04:57 +0200

Paul Eggert wrote:
> >   # if (!defined static_assert \
> > -      && __STDC_VERSION__ < 202311 && __cpp_static_assert < 201411)
> > +      && __STDC_VERSION__ < 202311 \
> > +      && __cpp_static_assert < 201411 && __GNUG__ < 6)
> >   #  define static_assert _Static_assert /* C11 requires this #define.  */
> >   # endif
> 
> Thanks for the fix. Should I also install the attached patch, for 
> consistency?

Yes, please. Since the only purpose of the
 #include <assert.h>
 #undef/**/assert
here is to get 'static_assert' working, and it works already in g++ ≥ 6,
the patch is correct.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]