base: Check for static_assert support and provide fallback
authorAndreas Sandberg <Andreas.Sandberg@arm.com>
Tue, 25 Sep 2012 16:49:40 +0000 (11:49 -0500)
committerAndreas Sandberg <Andreas.Sandberg@arm.com>
Tue, 25 Sep 2012 16:49:40 +0000 (11:49 -0500)
commit4544f3def42ae9b8c528223d8762ae3634c7124a
tree21fa1ea3b3e9e6aa57d44110eec07b712650f6fc
parent6598241f2c188ba6f4ce035d9e1fbdd4619c7e00
base: Check for static_assert support and provide fallback

C++11 has support for static_asserts to provide compile-time assertion
checking. This is very useful when testing, for example, structure
sizes to make sure that the compiler got the right alignment or vector
sizes.
SConstruct
src/base/compiler.hh