Re:Template Metaprogramming with Modern C++: templates in depth
by dllthomas on Monday September 29, 2014 @04:24PM
(#8385053)
Right, that looks like an exploration of what I was talking about (and at a skim, looks solid).
"you can't have the same binary code work on different types without having a run-time indirection in there somewhere"
That's certainly the case, but if you're passing by reference you already have an indirection, so that may or may not mean additional run-time overhead.
"you can't have the same binary code work on different types without having a run-time indirection in there somewhere"
That's certainly the case, but if you're passing by reference you already have an indirection, so that may or may not mean additional run-time overhead.