Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Include Files and Folder Structure Pin
Chris Losinger16-Aug-06 3:32
professionalChris Losinger16-Aug-06 3:32 
AnswerRe: Include Files and Folder Structure Pin
Cedric Moonen16-Aug-06 3:32
Cedric Moonen16-Aug-06 3:32 
GeneralRe: Include Files and Folder Structure Pin
pgav16-Aug-06 3:33
pgav16-Aug-06 3:33 
GeneralRe: Include Files and Folder Structure Pin
Zac Howland16-Aug-06 3:36
Zac Howland16-Aug-06 3:36 
QuestionPasswordDerivedBytes How To? Pin
Gywox16-Aug-06 3:00
Gywox16-Aug-06 3:00 
QuestionHow to send double value as 8 uint8 values? Pin
cahit2316-Aug-06 2:55
cahit2316-Aug-06 2:55 
QuestionRe: How to send double value as 8 uint8 values? Pin
David Crow16-Aug-06 3:09
David Crow16-Aug-06 3:09 
AnswerRe: How to send double value as 8 uint8 values? Pin
Steve S16-Aug-06 3:13
Steve S16-Aug-06 3:13 
GeneralRe: How to send double value as 8 uint8 values? Pin
David Crow16-Aug-06 3:15
David Crow16-Aug-06 3:15 
GeneralRe: How to send double value as 8 uint8 values? Pin
kakan16-Aug-06 3:43
professionalkakan16-Aug-06 3:43 
GeneralRe: How to send double value as 8 uint8 values? Pin
Zac Howland16-Aug-06 4:20
Zac Howland16-Aug-06 4:20 
AnswerRe: How to send double value as 8 uint8 values? Pin
Chris Losinger16-Aug-06 3:35
professionalChris Losinger16-Aug-06 3:35 
Questionproblem with FTP client Pin
vijay_aroli16-Aug-06 2:53
vijay_aroli16-Aug-06 2:53 
QuestionFaxRegisterRoutingExtension Fails on Windows XP! Pin
a_kiani16-Aug-06 2:43
a_kiani16-Aug-06 2:43 
AnswerRe: FaxRegisterRoutingExtension Fails on Windows XP! Pin
Hamid_RT18-Aug-06 8:02
Hamid_RT18-Aug-06 8:02 
Questionabout timestamp Pin
George_George16-Aug-06 2:42
George_George16-Aug-06 2:42 
AnswerRe: about timestamp Pin
David Crow16-Aug-06 2:49
David Crow16-Aug-06 2:49 
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

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.