Replace the overloads added inc2e5f3520a(Add a wxRound() overload for int, 2020-11-05) and1cf7c47934(Add more wxRound() compatibility overloads and improve docs, 2020-11-05) with a template function that should work for all integer types. This fixes compilation of existing code using wxRound() with size_t values: while this doesn't make any sense, it doesn't make much less sense than using it with int, so let people avoid having to change their code when upgrading to wx 3.2. Also add at least some minimal tests for this function. Closes https://github.com/wxWidgets/wxWidgets/pull/2119
4.7 KiB
4.7 KiB