Skip to content

Commit a945320

Browse files
committed
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.
1 parent 9974899 commit a945320

File tree

1 file changed

+109
-4163
lines changed

1 file changed

+109
-4163
lines changed

0 commit comments

Comments
 (0)