[bind/function] memory allocation question
24 Sep
2009
24 Sep
'09
1:04 p.m.
hi all,
i would like to use boost.bind and boost.function in a real-time
application, where heap memory allocation is not allowed.
according to the docs, boost.function may allocate memory on the heap,
but uses a small object optimization, to avoid heap allocation.
i'd be curious, if there is a way to figure out, whether heap allocation
may occur or not ... i would like to be able to use boost::function
objects, initialized by boost::bind, something like:
void callme (int some, int args)
{}
boost::function
5534
Age (days ago)
5534
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tim Blechmann