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");