svn commit: r228955 - head/include
Andreas Tobler
andreast at FreeBSD.org
Thu Dec 29 17:43:07 UTC 2011
On 29.12.11 15:41, Ed Schouten wrote:
> Author: ed
> Date: Thu Dec 29 14:41:17 2011
> New Revision: 228955
> URL: http://svn.freebsd.org/changeset/base/228955
>
> Log:
> Don't define static_assert for C++.
>
> Even though _Static_assert() is pretty robust for C code, it cannot work
> correctly with C++ code. This is due to the fact that C++ template
> parameters may contain commas that are not enclosed in parentheses. For
> example:
>
> static_assert(foo<int, int>::bar == baz, "...");
>
> This causes _Static_assert to be called with an excessive number of
> parameters. If you want to use static_assert in C++, just use a C++11
> compiler.
>
> Reported on: current@, ports@
Thank you Ed! gcc-4.6 bootstrap successful.
Andreas
More information about the svn-src-head
mailing list