On Sun, 6 Nov 2011, David Brown wrote: > Some of the differences are just mind-boggling - C1x has got a > "_Static_assert" addition, while C++11 has "static_assert". They do the same > thing, but have a different keyword. Don't these people /talk/ to each other? > Do they make differences like this deliberately to annoy people - both users > and toolwriters?
In C1X, <assert.h> defines the static_assert macro to expand to _Static_assert, just as C99 <stdbool.h> defines bool to _Bool. This way you can include the header and write code compatible with both languages, without automatically breaking any code that previously defined those identifiers in its own way. -- Joseph S. Myers jos...@codesourcery.com