Click here to Skip to main content
15,891,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General$500 to $10,000++ if you can decode this.. Pin
Member 9347019-Mar-04 4:22
Member 9347019-Mar-04 4:22 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
David Crow9-Mar-04 4:51
David Crow9-Mar-04 4:51 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
Iain Clarke, Warrior Programmer9-Mar-04 8:02
Iain Clarke, Warrior Programmer9-Mar-04 8:02 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
Prakash Nadar9-Mar-04 4:54
Prakash Nadar9-Mar-04 4:54 
QuestionHow to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 4:09
vgrigor9-Mar-04 4:09 
AnswerRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 5:32
Antti Keskinen9-Mar-04 5:32 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 5:45
vgrigor9-Mar-04 5:45 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 5:58
Robert A. T. Káldy9-Mar-04 5:58 
1. Base class cannot access to derived class members. Only derived class can access to base class members.

2. Derived classes cannot access private members of base class. Did you mean protected members?

3. Deriving from templatized class goes as following:
template<class T>
class Base
{
protected:
    T base_member;
};

template<class T>
class Derived : public Base<T>
{
...
};


Robert-Antonio

"Love without sex is like a fish without antlers"

GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 6:09
vgrigor9-Mar-04 6:09 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 6:39
Robert A. T. Káldy9-Mar-04 6:39 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 6:52
Antti Keskinen9-Mar-04 6:52 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 20:35
vgrigor9-Mar-04 20:35 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 23:52
Robert A. T. Káldy9-Mar-04 23:52 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor10-Mar-04 0:14
vgrigor10-Mar-04 0:14 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 6:48
Antti Keskinen9-Mar-04 6:48 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 20:40
vgrigor9-Mar-04 20:40 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 7:31
Antti Keskinen9-Mar-04 7:31 
GeneralRe: How to declare class Member with template declaration ? Pin
Michael Dunn9-Mar-04 13:10
sitebuilderMichael Dunn9-Mar-04 13:10 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 20:28
Antti Keskinen9-Mar-04 20:28 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 20:47
vgrigor9-Mar-04 20:47 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 23:38
Robert A. T. Káldy9-Mar-04 23:38 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen10-Mar-04 0:28
Antti Keskinen10-Mar-04 0:28 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 20:52
vgrigor9-Mar-04 20:52 
GeneralRe: How to declare class Member with template declaration ? Pin
Michael Dunn10-Mar-04 3:56
sitebuilderMichael Dunn10-Mar-04 3:56 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor10-Mar-04 5:34
vgrigor10-Mar-04 5:34 

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.