From e04079aa528ecbf4a8e39ed2b19c3cb50174e151 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 21 Feb 2017 06:21:49 +0100 Subject: [PATCH] Fixup to 33b696c8: fix compilation with gcc 4.6 --- src/support/Cache.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/support/Cache.h b/src/support/Cache.h index 75427809b4..d798793558 100644 --- a/src/support/Cache.h +++ b/src/support/Cache.h @@ -33,11 +33,15 @@ namespace lyx { */ template class Cache : private QCache { +#if !(defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 6)) static_assert(std::is_copy_constructible::value, "lyx::Cache only stores copyable objects!"); static_assert(std::is_default_constructible::value, "lyx::Cache only stores default-constructible objects!"); using Q = QCache; +#else + typedef QCache Q; +#endif public: /// -- 2.39.5