Hacker News new | ask | show | jobs
by sparkie 323 days ago
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.
1 comments

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 !