Quote:
Second there is the ability to protect a template so that it can only be instanciated for certain template parameters. Simply declare but do not define a protected/private member function that takes the class type as the parameter. Manually implement this method for allowed classes. Now at link time, if a programmer goes to use the template on a class other than one of the "approved" classes, a link error will occur.
Thanks, can become very usefull :D , never ever had thought about that myself.