From f0e7aa702095b22ba57a763c5c093e15d41586d1 Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Mon, 26 Feb 2018 18:45:57 -0800 Subject: Add new prevector benchmarks. This prepares for a series of two additional commits which optimize prevector performance. --- src/compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/compat.h') diff --git a/src/compat.h b/src/compat.h index aae84b1181..8a0f901304 100644 --- a/src/compat.h +++ b/src/compat.h @@ -10,6 +10,16 @@ #include #endif +#include + +// GCC 4.8 is missing some C++11 type_traits, +// https://www.gnu.org/software/gcc/gcc-5/changes.html +#if defined(__GNUC__) && __GNUC__ < 5 +#define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivial +#else +#define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_constructible +#endif + #ifdef WIN32 #ifdef _WIN32_WINNT #undef _WIN32_WINNT -- cgit v1.2.3