Hi, I have heard from many people that usage of templates make the code slow. Is it really true. I'm currently building a library. There are places where if templates are not created, it would result in code management problem. As of now I can think two solutions to this problem:
use #defines
Use templates and define all possible types in the header file/library itself but do not allow end user to make template instances.
e.g. typedef Graph<int> GraphI32;
etc.
Is there anyway, to restrict user from creating various template instances on their own.
Help on above queries would be highly regarded.