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

If the templates are monomorphized, each instantiation of a templated function will have a different address. To acquire the address of any given instantiation we need a symbol in the object file.


What isn't clear to me why one would ever want monomorphization in the first place.


Not ever wanting monomorphization seems like a bit of a strong claim to me. Why do you take that position?


I was asking the question why one would ever want it.


Right. I had interpreted you asking that question as you having taken that position and soliciting responses for a discussion. Seems that was an improper reading.


exactly !




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

Search: