From 644c9d38c2dca110c31f283cb03a4c0d0ac9a9a3 Mon Sep 17 00:00:00 2001 From: Alexander Suprunenko Date: Fri, 30 Mar 2018 02:07:59 +0300 Subject: [PATCH] fix functional object size checking in FixedFunction --- include/thread_pool/fixed_function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/thread_pool/fixed_function.hpp b/include/thread_pool/fixed_function.hpp index 5237052a..b3ae0b95 100644 --- a/include/thread_pool/fixed_function.hpp +++ b/include/thread_pool/fixed_function.hpp @@ -44,7 +44,7 @@ class FixedFunction { typedef typename std::remove_reference::type unref_type; - static_assert(sizeof(unref_type) < STORAGE_SIZE, + static_assert(sizeof(unref_type) <= STORAGE_SIZE, "functional object doesn't fit into internal storage"); static_assert(std::is_move_constructible::value, "Should be of movable type");