From 52d6ec2f2b8b05bff7d3dc0789a7f2b7b400bbc7 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 27 Jan 2019 22:24:40 +0100 Subject: [PATCH] Remove workaround for g++ 4.8. g++ 5.0 or higher is advertised in the doc. --- include/xbt/functional.hpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/xbt/functional.hpp b/include/xbt/functional.hpp index 40df428d55..7205ca8777 100644 --- a/include/xbt/functional.hpp +++ b/include/xbt/functional.hpp @@ -115,23 +115,11 @@ private: struct whatever {}; // Union used for storage: -#if 0 typedef typename std::aligned_union<0, void*, std::pair, std::pair >::type TaskUnion; -#else - union TaskUnion { - void* ptr; - std::pair funcptr; - std::pair memberptr; - char any1[sizeof(std::pair)]; - char any2[sizeof(std::pair)]; - TaskUnion() { /* Nothing to do */} - ~TaskUnion() { /* Nothing to do */} - }; -#endif // Is F suitable for small buffer optimization? template -- 2.20.1