Macros
static_assert.h File Reference
#include <boost/static_assert.hpp>
Include dependency graph for static_assert.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

#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.



rosconsole
Author(s): Josh Faust
autogenerated on Mon Nov 2 2020 03:52:16