Click here to Skip to main content
15,917,709 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralProperty Sheet Wizard Pin
mango_lier22-Aug-02 9:42
mango_lier22-Aug-02 9:42 
GeneralCreateThread / CloseHandle cleanly Pin
Paul Farry22-Aug-02 5:14
professionalPaul Farry22-Aug-02 5:14 
GeneralRe: CreateThread / CloseHandle cleanly Pin
_Magnus_22-Aug-02 5:18
_Magnus_22-Aug-02 5:18 
GeneralRe: CreateThread / CloseHandle cleanly Pin
Paul Farry22-Aug-02 5:29
professionalPaul Farry22-Aug-02 5:29 
Generalset compiler error Pin
_Magnus_22-Aug-02 3:43
_Magnus_22-Aug-02 3:43 
GeneralRe: set compiler error Pin
Michael Dunn25-Aug-02 21:32
sitebuilderMichael Dunn25-Aug-02 21:32 
GeneralSTL Container of classes Pin
[James Pullicino]21-Aug-02 21:39
[James Pullicino]21-Aug-02 21:39 
GeneralRe: STL Container of classes Pin
Anonymous21-Aug-02 22:07
Anonymous21-Aug-02 22:07 
One solution I found was to use pointers instead:

typedef map<long, a="" *=""> AMAP;

amap[10] = new A;

This negates the cost of default and copy constructors. However, it does mean that you then have to manage the deletion of the pointers yourself, as empyting the map will just remove them from the map, not from memory. Unfortunatley, auto_ptr does not work here!

I would be interested to see if there are any other solutions, as it seems to be very costly to use anything other than basic types in a container
GeneralRe: STL Container of classes Pin
Neville Franks21-Aug-02 22:40
Neville Franks21-Aug-02 22:40 
GeneralRe: STL Container of classes Pin
[James Pullicino]21-Aug-02 23:08
[James Pullicino]21-Aug-02 23:08 
GeneralRe: STL Container of classes Pin
peterchen27-Aug-02 20:32
peterchen27-Aug-02 20:32 
GeneralRe: STL Container of classes Pin
[James Pullicino]29-Aug-02 23:38
[James Pullicino]29-Aug-02 23:38 
GeneralRegular Expression Template Archive Pin
Idefix21-Aug-02 5:30
Idefix21-Aug-02 5:30 
GeneralRe: Regular Expression Template Archive Pin
Neville Franks21-Aug-02 23:06
Neville Franks21-Aug-02 23:06 
QuestionActivex which itself a control container? Pin
tomer dror21-Aug-02 4:36
tomer dror21-Aug-02 4:36 
AnswerRe: Activex which itself a control container? Pin
Rashid Thadha21-Aug-02 6:11
Rashid Thadha21-Aug-02 6:11 
GeneralOLEMISC_SIMPLEFRAMESITE? Pin
tomer dror21-Aug-02 6:18
tomer dror21-Aug-02 6:18 
GeneralRe: OLEMISC_SIMPLEFRAMESITE? Pin
Rashid Thadha21-Aug-02 6:39
Rashid Thadha21-Aug-02 6:39 
GeneralRe: OLEMISC_SIMPLEFRAMESITE? Pin
tomer dror21-Aug-02 7:09
tomer dror21-Aug-02 7:09 
GeneralATL remove Apply button on Properties... Pin
Braulio Dez20-Aug-02 0:06
Braulio Dez20-Aug-02 0:06 
GeneralWTL 7 MTPad Example Errors Pin
Ancient Dragon15-Aug-02 19:39
Ancient Dragon15-Aug-02 19:39 
GeneralRe: WTL 7 MTPad Example Errors Pin
Paul M Watt15-Aug-02 19:58
mentorPaul M Watt15-Aug-02 19:58 
GeneralRe: WTL 7 MTPad Example Errors Pin
Stuart Dootson15-Aug-02 20:51
professionalStuart Dootson15-Aug-02 20:51 
GeneralRe: WTL 7 MTPad Example Errors Pin
Ed Gadziemski19-Aug-02 12:07
professionalEd Gadziemski19-Aug-02 12:07 
Generalowner-draw menu Pin
Gabriel.P.G13-Aug-02 12:57
Gabriel.P.G13-Aug-02 12:57 

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.