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

C / C++ / MFC

 
GeneralRe: Outlook Express data format Pin
Mike_Beard26-Jun-02 10:13
Mike_Beard26-Jun-02 10:13 
GeneralRe: Outlook Express data format Pin
Ernest Laurentin26-Jun-02 8:58
Ernest Laurentin26-Jun-02 8:58 
GeneralRe: Outlook Express data format Pin
Mike_Beard26-Jun-02 10:05
Mike_Beard26-Jun-02 10:05 
GeneralCryptic Error popup Pin
Jerry Wang26-Jun-02 7:56
Jerry Wang26-Jun-02 7:56 
GeneralRe: Cryptic Error popup Pin
Ramu Pulipati26-Jun-02 8:20
Ramu Pulipati26-Jun-02 8:20 
GeneralRe: Cryptic Error popup Pin
Jerry Wang26-Jun-02 9:25
Jerry Wang26-Jun-02 9:25 
QuestionSTL ? Pin
Rage26-Jun-02 7:38
professionalRage26-Jun-02 7:38 
AnswerRe: STL ? Pin
Joaquín M López Muñoz26-Jun-02 8:33
Joaquín M López Muñoz26-Jun-02 8:33 
Well, this a rather obscure use of the template keyword caused by the extremely clumsy C++ syntax. getObjectDescriptor() returns an object of some class for which a template member function listSonsOfType is defined as in this example:
class CObjectDescriptor
{
...
template <typename T> std::list<const bla *> * listSonsOfType();
...
};
Now the line (without the template keyword)
return getObjectDescriptor().listSonsOfType<Type>( );
could be interpreted as a call to the member function or as an expression involving the operators "less than" and "greater than". In this case, the latter doesn't have any meaning, but C++ gurus found pathological examples in which both interpretations are valid. To disambiguate, one must include template.
By the way, this piece of code won't even approach to compile in VC++, which lacks template member function support.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: STL ? Pin
Rage26-Jun-02 21:48
professionalRage26-Jun-02 21:48 
QuestionCan you use a template class member variable within a template class? Pin
26-Jun-02 6:56
suss26-Jun-02 6:56 
AnswerRe: Can you use a template class member variable within a template class? Pin
Chris Losinger26-Jun-02 7:04
professionalChris Losinger26-Jun-02 7:04 
GeneralRe: Can you use a template class member variable within a template class? Pin
26-Jun-02 7:05
suss26-Jun-02 7:05 
AnswerRe: Can you use a template class member variable within a template class? Pin
Joaquín M López Muñoz26-Jun-02 7:05
Joaquín M López Muñoz26-Jun-02 7:05 
GeneralRe: Can you use a template class member variable within a template class? Pin
26-Jun-02 7:06
suss26-Jun-02 7:06 
AnswerRe: Can you use a template class member variable within a template class? Pin
Brian Delahunty26-Jun-02 7:19
Brian Delahunty26-Jun-02 7:19 
GeneralSocket in non-blocking mode Pin
26-Jun-02 6:38
suss26-Jun-02 6:38 
GeneralRe: Socket in non-blocking mode Pin
Joaquín M López Muñoz26-Jun-02 7:07
Joaquín M López Muñoz26-Jun-02 7:07 
GeneralRe: Socket in non-blocking mode Pin
valikac26-Jun-02 7:09
valikac26-Jun-02 7:09 
GeneralDatabase ( table Update/Delete) Pin
26-Jun-02 6:15
suss26-Jun-02 6:15 
GeneralRe: Database ( table Update/Delete) Pin
Ramu Pulipati26-Jun-02 8:30
Ramu Pulipati26-Jun-02 8:30 
GeneralON_UPDATE_COMMAND_UI and CDialog's Pin
Sprudling26-Jun-02 6:11
Sprudling26-Jun-02 6:11 
GeneralRe: ON_UPDATE_COMMAND_UI and CDialog's Pin
udayGovekar26-Jun-02 6:42
udayGovekar26-Jun-02 6:42 
GeneralRe: ON_UPDATE_COMMAND_UI and CDialog's Pin
Ernest Laurentin26-Jun-02 8:41
Ernest Laurentin26-Jun-02 8:41 
GeneralRe: ON_UPDATE_COMMAND_UI and CDialog's Pin
Sprudling26-Jun-02 22:20
Sprudling26-Jun-02 22:20 
GeneralArray to.bmp file Pin
Knowledge Seeker26-Jun-02 6:06
Knowledge Seeker26-Jun-02 6:06 

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.