Click here to Skip to main content
15,904,652 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalvector remove problem Pin
aguest10-Jun-03 9:29
aguest10-Jun-03 9:29 
GeneralRe: vector remove problem Pin
Ryan_Roberts10-Jun-03 9:42
Ryan_Roberts10-Jun-03 9:42 
GeneralRe: vector remove problem Pin
ZoogieZork10-Jun-03 10:48
ZoogieZork10-Jun-03 10:48 
GeneralRe: vector remove problem Pin
aguest10-Jun-03 11:22
aguest10-Jun-03 11:22 
GeneralRe: vector remove problem Pin
ZoogieZork10-Jun-03 13:40
ZoogieZork10-Jun-03 13:40 
GeneralBuild Error "Performing registration" Pin
clayne10-Jun-03 8:32
clayne10-Jun-03 8:32 
GeneralRe: Build Error "Performing registration" Pin
geo_m10-Jun-03 19:39
geo_m10-Jun-03 19:39 
GeneralSome advice on using deque please Pin
Steve Thresher10-Jun-03 8:17
Steve Thresher10-Jun-03 8:17 
I would like to write a wrapper around the deque implementation whereby the user cannot access the original deque implementation and I'm wondering if it would be best to derive a new template class from deque eg.

<br />
template <class T><br />
class CMyClass : private deque<T><br />
{<br />
};<br />


or just have a private workarea within my new class eg.

<br />
template <class T><br />
class CMyClass<br />
{<br />
private:<br />
    deque d;<br />
<br />
public:<br />
};<br />


Can anybody offer a suggestion as to which is 'more correct' and why. The main problem I am having with deriving my class from deque is how to handle the use of the overloaded [] (subscript) operator. If I do nothing the compiler gives an error due to private inheritance.

Any suggestions will be gratefully received.

Systems AXIS Ltd - Software for Business ...
GeneralRe: Some advice on using deque please Pin
Joaquín M López Muñoz10-Jun-03 8:46
Joaquín M López Muñoz10-Jun-03 8:46 
GeneralHows this for ugly! Pin
Steve Thresher10-Jun-03 9:47
Steve Thresher10-Jun-03 9:47 
GeneralRe: Hows this for ugly! Pin
Michael Dunn10-Jun-03 13:49
sitebuilderMichael Dunn10-Jun-03 13:49 
GeneralRe: Hows this for ugly! Pin
Steve Thresher11-Jun-03 21:45
Steve Thresher11-Jun-03 21:45 
GeneralOdd linker errors Pin
Tommy2k9-Jun-03 3:52
Tommy2k9-Jun-03 3:52 
GeneralRe: Odd linker errors Pin
Steve S9-Jun-03 4:01
Steve S9-Jun-03 4:01 
GeneralVector in Vector Pin
mpb6-Jun-03 2:02
mpb6-Jun-03 2:02 
GeneralRe: Vector in Vector Pin
Alexandru Savescu6-Jun-03 2:55
Alexandru Savescu6-Jun-03 2:55 
GeneralRe: Vector in Vector Pin
Anonymous6-Jun-03 4:22
Anonymous6-Jun-03 4:22 
GeneralRe: Vector in Vector Pin
Alexandru Savescu6-Jun-03 4:43
Alexandru Savescu6-Jun-03 4:43 
GeneralDrag and resize support in Composite control Pin
awaken735-Jun-03 20:40
awaken735-Jun-03 20:40 
GeneralActiveX and VBA Pin
Uladzimir4-Jun-03 16:39
Uladzimir4-Jun-03 16:39 
GeneralATL object in MFC project Pin
Abebe3-Jun-03 3:29
Abebe3-Jun-03 3:29 
GeneralRe: ATL object in MFC project Pin
valikac3-Jun-03 19:33
valikac3-Jun-03 19:33 
GeneralRe: ATL object in MFC project Pin
Abebe3-Jun-03 20:53
Abebe3-Jun-03 20:53 
GeneralRe: ATL object in MFC project Pin
Michael Dunn4-Jun-03 15:32
sitebuilderMichael Dunn4-Jun-03 15:32 
GeneralATL &quot;PERF_AVERAGE_TIMER&quot; counter type doesn't seem to work. Pin
anapaula2-Jun-03 6:06
anapaula2-Jun-03 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.