4 ms·
So that ForwardToTestFunc right? At what time are the template arguments filled in? Could you call it first with an int and then later with a string, each call
by im3w1l 6y ago
So that ForwardToTestFunc right? At what time are the template arguments filled in? Could you call it first with an int and then later with a string, each call forwarding to a different overload?
- gumby 6y agoYes, that’s precisely the use case. The compiler synthesizes two functions, one for each case, then optimizes them separately.