Best way to get inside C++ is to read C++ standards. Inspite of four
years of experience, I get confused reading C++ standard.
I could not understand the below paragraph $14.2
Note: in a class template declaration, if the declarator-id is a
template-id, the declaration declares a class template partial
specialization
A template specialization (_temp.spec_) can be referred to by a
template-id:
How could we justify the $14.2 paragraph in below example
template<class T1, class T2, int I> class A { }; // #1
template<class T, int I> class A<T, T*, I> { }; // #2
partial specialization
What will be declaration-id in above case ? As per my understanding,
template-id will be class A<T,T*,I>.
It gets difficult to understand keywords like declaration-id in C++
standard. Is there any better way to understand C++ standards as I want
to get hold of each line quoted in standards.
Regards
Dinesh
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


|