Skip to content
Commit 0e73ffcf authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

cpp: BUILD_ASSERT() uses static_assert() iff C++11



The #if to use static_assert() for BUILD_ASSERT() only checks
whether compiler is in C++ mode, but does not check what
C++ standard is being used. Since static_assert() is only
valid since C++11, for compilers not supporting C++11 (XCC...),
this will result in error. So add the correct #if to also
check for C++ standard being used.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 1e16feac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment