bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] verify: use _Static_assert if available


From: Bruno Haible
Subject: Re: [PATCH] verify: use _Static_assert if available
Date: Sat, 9 Apr 2011 02:14:44 +0200
User-agent: KMail/1.9.9

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

-- 
In memoriam Hans von Dohnanyi <http://en.wikipedia.org/wiki/Hans_von_Dohnanyi>



reply via email to

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