From 78f3cd59a12e797f5d6b3749e7191b0b1f097ea2 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 12 Jul 2017 16:57:47 -0700 Subject: [PATCH] better is_final on empty_base_optimization --- CHANGELOG.md | 1 + include/beast/core/detail/empty_base_optimization.hpp | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 288d241b..648b2794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 81: * Pass string_view by value +* better is_final on empty_base_optimization -------------------------------------------------------------------------------- diff --git a/include/beast/core/detail/empty_base_optimization.hpp b/include/beast/core/detail/empty_base_optimization.hpp index a0ca4446..0640cb3a 100644 --- a/include/beast/core/detail/empty_base_optimization.hpp +++ b/include/beast/core/detail/empty_base_optimization.hpp @@ -8,6 +8,7 @@ #ifndef BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP #define BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP +#include #include #include @@ -16,12 +17,9 @@ namespace detail { template struct empty_base_optimization_decide - : std::integral_constant ::value -#ifdef __clang__ - && !__is_final(T) -#endif - > + : std::integral_constant::value && + ! boost::is_final::value> { };