Does GCC have a built-in compile time assert?
Posted
by VladLosev
on Stack Overflow
See other posts from Stack Overflow
or by VladLosev
Published on 2009-06-12T16:35:24Z
Indexed on
2010/05/13
10:34 UTC
Read the original article
Hit count: 137
Our existing compile-time assert implementation is based on negative array index, and it provides poor diagnostic output on GCC. C++0x's static_assert
is a very nice feature, and the diagnostic output it provides is much better. I know GCC has already implemented some C++0x features. Does anyone know if static_assert
is among them and if it is then since what GCC version?
© Stack Overflow or respective owner