Click here to Skip to main content
15,895,871 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about timestamp Pin
George_George16-Aug-06 19:29
George_George16-Aug-06 19:29 
GeneralRe: about timestamp Pin
David Crow17-Aug-06 3:10
David Crow17-Aug-06 3:10 
GeneralRe: about timestamp Pin
George_George17-Aug-06 22:52
George_George17-Aug-06 22:52 
GeneralRe: about timestamp Pin
David Crow18-Aug-06 2:53
David Crow18-Aug-06 2:53 
GeneralRe: about timestamp Pin
George_George18-Aug-06 21:33
George_George18-Aug-06 21:33 
QuestionUndefined operator? Pin
Skippums16-Aug-06 1:59
Skippums16-Aug-06 1:59 
AnswerRe: Undefined operator? Pin
Emilio Garavaglia16-Aug-06 2:22
Emilio Garavaglia16-Aug-06 2:22 
GeneralInheritance properties Pin
Skippums16-Aug-06 8:35
Skippums16-Aug-06 8:35 
I attempted that piece of code, and received an error like "Using non-static member of List<char>"

However, your response inspired me to try other things that were close to your solution, and the one that finally made the problem go away was simply to redefine the operation in the string class like:

String& String::operator +(const String&) const { <code here> } 


I guess what I am confused about, is the following: In the following code, why isn't the List operator + equivalent to the String operator + as defined above from the compiler's perspective? Is there a way to make them equivalent, perhaps by using another method of definition?

template <class TYPE>
class List<TYPE> {
    ...
public:
    List<TYPE>& operator +(const List<TYPE>& ) const;
    ...
}

class String:public List<char> {
}


Thanks,
-Jeff


-- modified at 14:36 Wednesday 16th August, 2006
GeneralRe: Inheritance properties [modified] Pin
Emilio Garavaglia17-Aug-06 5:30
Emilio Garavaglia17-Aug-06 5:30 
Questionproblem in my progress bar (attached in a Dialog) Pin
mrhataw16-Aug-06 1:39
mrhataw16-Aug-06 1:39 
AnswerRe: problem in my progress bar (attached in a Dialog) Pin
Rage16-Aug-06 1:41
professionalRage16-Aug-06 1:41 
AnswerRe: problem in my progress bar (attached in a Dialog) Pin
Cedric Moonen16-Aug-06 1:45
Cedric Moonen16-Aug-06 1:45 
Questiongetch() problem. Pin
Kiran Pinjala16-Aug-06 1:10
Kiran Pinjala16-Aug-06 1:10 
AnswerRe: getch() problem. Pin
Rage16-Aug-06 1:28
professionalRage16-Aug-06 1:28 
AnswerRe: getch() problem. Pin
sunit516-Aug-06 1:46
sunit516-Aug-06 1:46 
AnswerRe: getch() problem. Pin
David Crow16-Aug-06 2:40
David Crow16-Aug-06 2:40 
Questionwav file format [modified] Pin
69 Bay16-Aug-06 0:35
69 Bay16-Aug-06 0:35 
Questionpragma once Pin
Sarvan AL16-Aug-06 0:14
Sarvan AL16-Aug-06 0:14 
AnswerRe: pragma once Pin
Rage16-Aug-06 1:40
professionalRage16-Aug-06 1:40 
GeneralRe: pragma once Pin
Sarvan AL16-Aug-06 1:48
Sarvan AL16-Aug-06 1:48 
GeneralRe: pragma once [modified] Pin
sunit516-Aug-06 2:03
sunit516-Aug-06 2:03 
QuestionCannot edit and continue in VC++ 2005. Pin
tonyvsuk15-Aug-06 23:46
tonyvsuk15-Aug-06 23:46 
QuestionVC++ Linking error to do with += Operator Pin
ajisthekingofpop15-Aug-06 23:40
ajisthekingofpop15-Aug-06 23:40 
AnswerRe: VC++ Linking error to do with += Operator Pin
Rage16-Aug-06 1:42
professionalRage16-Aug-06 1:42 
QuestionRe: VC++ Linking error to do with += Operator Pin
David Crow16-Aug-06 2:47
David Crow16-Aug-06 2:47 

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.