Searched hist:228955 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10-stable/include/
H A Dassert.hdiff 228955 Thu Dec 29 12:55:40 MST 2011 ed 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@

Completed in 32 milliseconds