Re: [PATCH 2/2] Use static_assert for STATIC_ASSERT for C++11 onwards

2016-07-27 Thread Richard Biener
On Wed, Jul 27, 2016 at 1:19 AM, David Malcolm wrote: > C++11 has a > static_assert (COND, MESSAGE) > which gives more readable error messages for STATIC_ASSERT than our > current implementation. > > This patch makes us use it if __cplusplus >= 201103L > > There's also a provisional static_asser

[PATCH 2/2] Use static_assert for STATIC_ASSERT for C++11 onwards

2016-07-26 Thread David Malcolm
C++11 has a static_assert (COND, MESSAGE) which gives more readable error messages for STATIC_ASSERT than our current implementation. This patch makes us use it if __cplusplus >= 201103L There's also a provisional static_assert (COND) in C++1z, but presumably we should wait until that one is fu