mirror of https://github.com/ARMmbed/mbed-os.git
Reduce Callback.h using C++11
The bulk of Callback.h was auto-generated as 6 specialisations, handling zero to five arguments. This can now be handled without specialisation using C++11 variadic templates, reducing the file from 4,900 lines to 900 lines. This should reduce compilation time, and offset potential increases from use of `<type_traits>` or a local `mbed_cxxsupport.h` equivalent. Several other improvents to `Callback` are possible and/or desirable with C++11, such as the ability to store lambdas, but this commit is purely the variadic simplification.pull/10885/head
parent
9974899a6b
commit
a9453201fe
4264
platform/Callback.h
4264
platform/Callback.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue