blocxx
Classes | Namespaces | Defines

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.


Defines

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

Define Documentation

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

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

Definition at line 53 of file StaticAssert.hpp.

#define BLOCXX_STATIC_ASSERT_CAT (   a,
 
)    a ## b

Definition at line 52 of file StaticAssert.hpp.