[C++ PATCH] C++0x static assertions

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Nov 8 13:46:00 GMT 2006

"Doug Gregor" <doug.gregor@gmail.com> writes:

| On 07 Nov 2006 23:42:28 +0100, Gabriel Dos Reis
| <gdr@integrable-solutions.net> wrote:
| > Douglas Gregor <doug.gregor@gmail.com> writes:
| > could we simplify the ugliness and do without __static_assert, and
| > plain static_assert?

sorry, the above should read "use plain static_assert".

| If we don't care to use static_assert inside libstdc++ (or we want to
| fall back to library-only solutions when we're not in C++0x mode),
| yes, we can simplify. I'm CC'ing libstdc++; if anyone wants to use
| static_assert in the library, they should speak up :)

I like simple and elegant codes.  There is no fundamental reason why
the library should not be elegant.

-- Gaby

More information about the Gcc-patches mailing list