diff options
author | ed <ed@FreeBSD.org> | 2011-12-29 14:41:17 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-12-29 14:41:17 +0000 |
commit | 6b1695514efa6e705884f7d15166aecea36a7109 (patch) | |
tree | 50309d6357daf075303c5d87a8558a92b3f59fe4 /sys/compat/linux/linux_file.c | |
parent | f9bb345c0851c34aa1058639a5701a0e86cf63f6 (diff) | |
download | FreeBSD-src-6b1695514efa6e705884f7d15166aecea36a7109.zip FreeBSD-src-6b1695514efa6e705884f7d15166aecea36a7109.tar.gz |
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@
Diffstat (limited to 'sys/compat/linux/linux_file.c')
0 files changed, 0 insertions, 0 deletions