Attempting to explicit specialize or instantiate a template which does not exist is clearly illegal. For example:
template<class T> class foo; template class bar<char>;// error: what is "bar"?? template<> class bar<int> { };// error: there's that "bar" again
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|