Recent compilers do not allow parametric functions to be exported, so remove the keyword. Note that this means the function now gets inlined with default optimization levels.
const