4 ms·
Yeah, but then you have to compile the function in every single cpp file and your linking time increases and you're at risk of violating ODR and you have to giv
by anon4 11y ago
Yeah, but then you have to compile the function in every single cpp file and your linking time increases and you're at risk of violating ODR and you have to give people the full definition of your function if you're making a library rather than just the declaration and a .a/.obj/.so.
- gpderetta 11y agoYou provide a type safe variadic template interface which forwards to a type erased out of line layer. It would compile down to the same code as the macro.