Example:
template class Base { public: Base(); friend class T; };
Now this doesn\'t work... Is there a way of doing
Do you really need to do this? If you want to prevent someone from deriving from your class, just add a comment and make the destructor non-virtual.