#include <boost/static_assert.hpp>
Go to the source code of this file.
Macros | |
#define | ROS_COMPILE_ASSERT(cond) BOOST_STATIC_ASSERT(cond) |
Compile-time assert. More... | |
#define | ROS_STATIC_ASSERT(cond) BOOST_STATIC_ASSERT(cond) |
Compile-time assert. More... | |
#define ROS_COMPILE_ASSERT | ( | cond | ) | BOOST_STATIC_ASSERT(cond) |
Compile-time assert.
Only works with compile time statements, ie:
struct A { uint32_t a; }; ROS_COMPILE_ASSERT(sizeof(A) == 4);
Definition at line 52 of file static_assert.h.
#define ROS_STATIC_ASSERT | ( | cond | ) | BOOST_STATIC_ASSERT(cond) |
Compile-time assert.
Only works with compile time statements, ie:
struct A { uint32_t a; }; ROS_STATIC_ASSERT(sizeof(A) == 4);
Definition at line 67 of file static_assert.h.