blocxx
StaticAssert.hpp File Reference
#include "blocxx/BLOCXX_config.h"

Go to the source code of this file.

Classes

struct  BLOCXX_NAMESPACE::StaticAssertionFailure< true >
 

Namespaces

namespace  BLOCXX_NAMESPACE
 Taken from RFC 1321.
 

Macros

#define BLOCXX_STATIC_ASSERT_CAT(a, b)
 
#define BLOCXX_STATIC_ASSERT_AUX(a, b)
 
#define BLOCXX_STATIC_ASSERT(B)
 

Macro Definition Documentation

◆ BLOCXX_STATIC_ASSERT

#define BLOCXX_STATIC_ASSERT ( B)
Value:
enum { \
BLOCXX_STATIC_ASSERT_AUX(blocxx_static_assert_enum_, __LINE__) \
= sizeof( ::blocxx::StaticAssertionFailure< (bool)( B ) > ) \
}

Definition at line 55 of file StaticAssert.hpp.

◆ BLOCXX_STATIC_ASSERT_AUX

#define BLOCXX_STATIC_ASSERT_AUX ( a,
b )
Value:
#define BLOCXX_STATIC_ASSERT_CAT(a, b)

Definition at line 53 of file StaticAssert.hpp.

◆ BLOCXX_STATIC_ASSERT_CAT

#define BLOCXX_STATIC_ASSERT_CAT ( a,
b )
Value:
a ## b

Definition at line 52 of file StaticAssert.hpp.