Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
src/utils/static_assert/static_assert.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  utils::static_assert_::STATIC_ASSERTION_FAILURE< true >
struct  utils::static_assert_::static_assert_test< x >

Namespaces

namespace  utils
namespace  utils::static_assert_

Defines

#define __JOIN(X, Y)   __JOIN2(X, Y)
#define __JOIN2(X, Y)   X##Y
#define STATIC_ASSERT(B, MSG)

Define Documentation

#define __JOIN (   X,
 
)    __JOIN2(X, Y)
#define __JOIN2 (   X,
 
)    X##Y
#define STATIC_ASSERT (   B,
  MSG 
)
Value:
typedef ::utils::static_assert_::static_assert_test<\
      sizeof(::utils::static_assert_::STATIC_ASSERTION_FAILURE<(bool) (B)>)> \
      __JOIN(static_assert_on_line_, __LINE__);

Static assertion. You can assert on any compile-time expressions. Note: if you try to pass non-compile-time expression, compilation will be aborted

Parameters:
Bboolean expression
MSG(ignored) message - it is for compatibility with C++0x static_assert
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines