summaryrefslogtreecommitdiff
path: root/src/base/compiler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/compiler.hh')
-rw-r--r--src/base/compiler.hh30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/base/compiler.hh b/src/base/compiler.hh
index 33654fc11..7176537d2 100644
--- a/src/base/compiler.hh
+++ b/src/base/compiler.hh
@@ -43,8 +43,6 @@
#ifndef __BASE_COMPILER_HH__
#define __BASE_COMPILER_HH__
-#include "config/have_static_assert.hh"
-
// http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
#if defined(__GNUC__)
@@ -58,32 +56,4 @@
#error "Need to define compiler options in base/compiler.hh"
#endif
-/*
- * Define a compatibility macro that emulates the behavior of
- * static_assert using template magic if the compiler doesn't have
- * native support.
- */
-#if !HAVE_STATIC_ASSERT
-
-template<bool>
-struct static_assert_failure;
-
-template<>
-struct static_assert_failure<false> {};
-
-/* The following macro causes the compiler to evaluate the size of the
- * static_assert_failure struct. The templates are designed so that
- * only static_assert_failure<false> evaluates to a proper size, while
- * static_assert_failure<true> generates a compile time error.
- */
-#define static_assert(expr, msg) \
- namespace ns_static_assert { \
- enum { \
- static_assert_ ## __LINE__ = \
- sizeof(static_assert_failure<!(expr)>) \
- }; \
- }
-
-#endif
-
#endif // __BASE_COMPILER_HH__