Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > ANSI C++ Standa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 6666 of 9828
Post > Topic >>

ANSI C++ Standard

by mdlinux7@[EMAIL PROTECTED] Feb 20, 2006 at 11:24 AM

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! ]
 




 5 Posts in Topic:
ANSI C++ Standard
mdlinux7@[EMAIL PROTECTED  2006-02-20 11:24:32 
Re: ANSI C++ Standard
"Alf P. Steinbach&qu  2006-02-20 18:32:12 
Re: ANSI C++ Standard
Chris Hills <chris@[EM  2006-02-20 19:01:31 
Re: ANSI C++ Standard
mdlinux7@[EMAIL PROTECTED  2006-02-22 20:33:22 
Re: ANSI C++ Standard
Jerry Coffin <jcoffin@  2006-02-23 06:08:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 17:46:54 CDT 2008.