Skip to content

Commit

Permalink
fix functional object size checking in FixedFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
SuprunenkoO committed Mar 29, 2018
1 parent af95dd8 commit 644c9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/thread_pool/fixed_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FixedFunction<R(ARGS...), STORAGE_SIZE>
{
typedef typename std::remove_reference<FUNC>::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<unref_type>::value,
"Should be of movable type");
Expand Down

0 comments on commit 644c9d3

Please sign in to comment.