forked from boostorg/function
Small buffer optimization for Boost.Function
[SVN r32282]
This commit is contained in:
@ -45,7 +45,7 @@ struct plus_int
|
||||
{
|
||||
int operator()(int x, int y) const { return x + y; }
|
||||
|
||||
int unused_state_data;
|
||||
int unused_state_data[32];
|
||||
};
|
||||
|
||||
static int do_minus(int x, int y) { return x-y; }
|
||||
@ -54,7 +54,7 @@ struct DoNothing
|
||||
{
|
||||
void operator()() const {}
|
||||
|
||||
int unused_state_data;
|
||||
int unused_state_data[32];
|
||||
};
|
||||
|
||||
static void do_nothing() {}
|
||||
|
Reference in New Issue
Block a user