Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
static_constant.hpp File Reference
Include dependency graph for static_constant.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#define BOOST_UNITS_STATIC_CONSTANT(name, type)
 A convenience macro that allows definition of static constants in headers in an ODR-safe way. More...
 

Macro Definition Documentation

#define BOOST_UNITS_STATIC_CONSTANT (   name,
  type 
)
Value:
template<bool b> \
struct name##_instance_t \
{ \
static const type instance; \
}; \
\
namespace \
{ \
static const type& name = name##_instance_t<true>::instance; \
} \
\
template<bool b> \
const type name##_instance_t<b>::instance
const int name
Definition: gzip.hpp:94
void const
Definition: is_convertible.hpp:460
adjacency_iterator typedef T::adjacency_iterator type
Definition: graph_traits.hpp:42

A convenience macro that allows definition of static constants in headers in an ODR-safe way.