omegalib  13.1
static_assert.h File Reference

Template class to check validity duing compile time (adapted from Loki). More...

Classes

struct  __nvwa_compile_time_error< bool >
 
struct  __nvwa_compile_time_error< true >
 

Macros

#define STATIC_ASSERT(_Expr, _Msg)
 

Detailed Description

Template class to check validity duing compile time (adapted from Loki).

Version
1.2, 2005/11/22
Author
Wu Yongwei

Macro Definition Documentation

#define STATIC_ASSERT (   _Expr,
  _Msg 
)
Value:
{ \
__nvwa_compile_time_error<((_Expr) != 0)> ERROR_##_Msg; \
(void)ERROR_##_Msg; \
}