Re:Has C++ jumped the shark?
by corysama on Monday March 28, 2011 @05:22PM
(#2380159)
If you are instantiating equivalent functions (sorting foo* vs sorting bar* ) then the linker will merge their binaries -no dupes there. If you are generating different functions (sorting foo vs foo* ) then you are asking for different functions -no dupes there either. If you want to keep everything down to one function, qsort() didn't disappear when they added std::sort() and it is pretty close to what a dynamic language sort would do under the hood.
[ Parent
| on HN ]
I believe this is called Identical COMDAT Folding in VC++