Click here to Skip to main content
16,004,974 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 15:58
sold_out4-Mar-08 15:58 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 16:17
Mark Salsbery4-Mar-08 16:17 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 16:23
sold_out4-Mar-08 16:23 
GeneralRe: Prison? it might be a disaster Pin
ThatsAlok4-Mar-08 20:35
ThatsAlok4-Mar-08 20:35 
GeneralRe: Prison? it might be a disaster Pin
ThatsAlok4-Mar-08 20:32
ThatsAlok4-Mar-08 20:32 
GeneralRe: Prison? it might be a disaster Pin
Pete O'Hanlon5-Mar-08 22:26
mvePete O'Hanlon5-Mar-08 22:26 
GeneralRe: Prison? it might be a disaster Pin
Christian Graus5-Mar-08 14:58
protectorChristian Graus5-Mar-08 14:58 
Generaldependent names Pin
George_George4-Mar-08 15:27
George_George4-Mar-08 15:27 
Hello everyone,


I have made some study on this. Here is something I found confused.

http://womble.decadentplace.org.uk/c++/template-faq.html#dependent

--------------------
What are dependent names?

A: Dependent names are names whose definitions are considered to depend upon the template parameters and for which there is no declaration within the template definition. They are resolved only when the template is instantiated. Those that are intended to refer to types or templates may require disambiguation.

If the resolution of a dependent function name uses argument-dependent lookup, declarations in the arguments' namespaces that are visible at the point of instantiation will be considered as well as declarations visible at the point of definition. (The former is normally a superset of the latter, but may not be.)
--------------------

Two confusions,

1. What means " for which there is no declaration within the template definition"?

2. What means "declarations in the arguments' namespaces that are visible at the point of instantiation will be considered as well as declarations visible at the point of definition."?

Could you show some pseudo code please?

BTW: I feel I lack some knowledge of template programming in-depth even if I use STL template everyday. I tried ti read appendix C for Bjarne's book, and it contains more confusing terms about dependent names (e.g. section C.13.8.1).


regards,
George
GeneralRe: dependent names Pin
Maxwell Chen4-Mar-08 19:55
Maxwell Chen4-Mar-08 19:55 
GeneralRe: dependent names Pin
George_George4-Mar-08 22:31
George_George4-Mar-08 22:31 
QuestionHow to display a JPG file using BitBlt? Pin
TooShy2Talk4-Mar-08 15:04
TooShy2Talk4-Mar-08 15:04 
AnswerRe: How to display a JPG file using BitBlt? Pin
Mark Salsbery4-Mar-08 15:51
Mark Salsbery4-Mar-08 15:51 
QuestionRe: How to display a JPG file using BitBlt? Pin
TooShy2Talk4-Mar-08 16:19
TooShy2Talk4-Mar-08 16:19 
GeneralRe: How to display a JPG file using BitBlt? Pin
Mark Salsbery4-Mar-08 16:23
Mark Salsbery4-Mar-08 16:23 
AnswerRe: How to display a JPG file using BitBlt? Pin
followait4-Mar-08 15:52
followait4-Mar-08 15:52 
QuestionDebugCRT.DLL 8.0.50727.762 Pin
Ed K4-Mar-08 13:56
Ed K4-Mar-08 13:56 
GeneralVS 2005 SP1 Pin
Ed K4-Mar-08 15:26
Ed K4-Mar-08 15:26 
QuestionHow to set an expiration date on an application or dll Pin
Californian24-Mar-08 13:07
Californian24-Mar-08 13:07 
AnswerRe: How to set an expiration date on an application or dll Pin
Chris Losinger4-Mar-08 16:02
professionalChris Losinger4-Mar-08 16:02 
GeneralRe: How to set an expiration date on an application or dll Pin
Californian24-Mar-08 18:52
Californian24-Mar-08 18:52 
GeneralRe: How to set an expiration date on an application or dll Pin
ja_jerry4-Mar-08 18:58
ja_jerry4-Mar-08 18:58 
GeneralRe: How to set an expiration date on an application or dll Pin
Chris Losinger5-Mar-08 0:53
professionalChris Losinger5-Mar-08 0:53 
Generalabout iostream Pin
DSPCottage4-Mar-08 8:42
DSPCottage4-Mar-08 8:42 
QuestionRe: about iostream Pin
Maxwell Chen4-Mar-08 8:46
Maxwell Chen4-Mar-08 8:46 
GeneralRe: about iostream Pin
Mark Salsbery4-Mar-08 8:51
Mark Salsbery4-Mar-08 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.