------- Comment #2 from doug dot gregor at gmail dot com 2007-01-24 04:36 ------- (In reply to comment #1) > This is the normal problem adding a keyword in any language, I don't see why > C++0x 's static_assert not use a keyword in the already reserved identifier > namespace?
The C++ committee opted to give this new functionality a new keyword, knowing that it breaks backward compatibility (in an admittedly small way). If we don't like the spelling, this is the time to complain directly to the committee. Unless we get them to change the spelling (very doubtful), we're going to have to deal with this. Other keywords are coming down the pipe... I expect that by April we'll also have "decltype" and "constexpr" to deal with, and in the future we'll probably also see "concept" and "concept_map", among other things. The -Wc++0x-compat warning is proposed to help us (and our users) make this transition smoothly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30571