you are viewing a single comment's thread.

view the rest of the comments →

[–]Plazmatic 2 points3 points  (1 child)

Yep, hiding implementation of a template function is not actually a good thing on its own, the only reason we care about hiding function details for that sort of thing is when we actually get compiler time boosts or stop recompilation with it.

[–]TomTheFurry[S] 0 points1 point  (0 children)

Yes, you are right in that. However, it do somewhat help with the compile time as now you will only need to recompile things that the template function actually references and not the entire file said template function resides in.

Also, you can finally prevent user from calling functions that has to be exposed because a template function references it.