$search

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.

Defines

#define ROS_COMPILE_ASSERT(cond)   BOOST_STATIC_ASSERT(cond)
 Compile-time assert.
#define ROS_STATIC_ASSERT(cond)   BOOST_STATIC_ASSERT(cond)
 Compile-time assert.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rosconsole
Author(s): Josh Faust
autogenerated on Sat Mar 2 13:22:43 2013