ARMmbed / core-util

DEPRECATED: Mbed 3 utilities library
Other
12 stars 17 forks source link

Reduce FunctionPointerBase size and provide alignment guarantees for the storage of member function pointers #41

Closed pan- closed 8 years ago

pan- commented 8 years ago

This little change increase the size and alignment guarantees of the storage space used in FunctionPointerbase to store member function pointers.

As a side effect, it also reduce the size of the FunctionPointerBase class from 28 bytes to 20.

It is important to note that it is still possible to decrease the size of FunctionPointerBase:

0xc0170 commented 8 years ago

LGTM

bremoran commented 8 years ago

LGTM