If a friend template is declared, but no template parameters are specified, this error will result. For example:
template<class T> class foo; class bar { friend class foo;// error: forgot template parameters! };
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|