9527 assert.h: static_assert macro should be guarded by !defined(__cplusplus)
Review Request #1084 — Created May 9, 2018 and submitted
Information | |
---|---|
citrus | |
illumos-gate | |
master | |
9527 | |
510c7e0... | |
Reviewers | |
general | |
9527 assert.h: static_assert macro should be guarded by !defined(__cplusplus)
See issue.
Compiling simple test program with both OmniOS and pkgsrc gcc7, fails before, succeeds after.
Compared with FreeBSD header file where they guard against cplusplus - see http://src.illumos.org/source/xref/freebsd-head/include/assert.h#72#include <cassert> #include <cstdlib> #include <type_traits> int main() {}