Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"void* and function pointers" behaves essentially the same as templates, assuming the compiler inlines or function clones the function called with constant expression arguments.


All equivalent code has the same performance with a sufficiently smart compiler. In practice, compilers are often not sufficiently smart.


Without the related typechecking.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: