News for hackers. Stuff that matters.
Re:The libkern C++ Runtime by Negitivefrags on Wednesday July 11, 2018 @09:07PM (#17511486)
In practice most of the time you would just write a generic version using one of the other mechanisms. Virtual functions, void* and casting, type ids, or whatever.

Just like everything else, it's a time/space tradeoff because it generates less optimal code in exchange for a smaller binary size.

Re:The libkern C++ Runtime by cbsmith on Wednesday July 11, 2018 @09:17PM (#17511520)
There's actually a pretty well established design pattern about wrapping one of those methods with the template class, thereby allowing type safety checks and such whilst still minimizing bloat.