Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > explaination need for if such a qualifier appears at the outermost level of the parameter type, it is simply ignored:

Reply
Thread Tools

explaination need for if such a qualifier appears at the outermost level of the parameter type, it is simply ignored:

 
 
baumann@pan
Guest
Posts: n/a
 
      05-19-2005
hi all,


Nontype template parameters are declared much like variables, but they
cannot have nontype specifiers like static, mutable, and so forth. They
can have const and volatile qualifiers, but if such a qualifier appears
at the outermost level of the parameter type, it is simply ignored:

template<int const length> class Buffer; // const is useless here
template<int length> class Buffer; // same as previous
declaration



can anyone give an exmaple of how to write a const/volatile useful
templates to illustrate the case contrasted to the "
but if such a qualifier appears at the outermost level of the
parameter type, it is simply ignored:"



baumann@pan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-level pointer conversion with cv-qualifier, g++ doens't match Standard? Road Tang C++ 13 03-26-2008 03:19 AM
OT: the level of spam is simply incredible. Paul B Computer Support 5 08-09-2007 07:51 PM
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
Can I list contents of nested zipfile using Archive::Zip withoutextracting the outermost zip? Graham Wood Perl Misc 3 01-11-2004 01:17 AM
RegExp outermost () Chris Morris Ruby 1 07-22-2003 06:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57