31 Dec
2018
31 Dec
'18
5:53 p.m.
Hi Andrea, Yes, I need to provide different implementations of foo for different types, but a single function implementation for a given type. That implementation would be, most probably, a function template overload. Best, Irek On 31.12.2018 11:51, Andrea Bocci wrote:
Hi Irek, I am confused, because you wrote
I need to provide different implementations of foo for different types
and
it would be more generic to provide a single function implementation
which I find contradictory.
Do you mean that you want to write a templated implementation once, and that implementation should call different function/methods/etc. depending on the templated type ?
Regards, .Andrea