Just in case my question leaves any room for miscommunication, theres the code example. If was not templated but inherited from directly then the sample would fail to compile because clearly function attempts to call a function on base class which is non-existent. However if is templated then this is only picked up if is actually called. I'd like to know why there is this difference. In both instances would be dead code and stripped anyway, yet the program is ill-formed in the non-template scenario.
Beta Carotin
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Beta
Contact Beta, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack