Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vector, adding things Pin
CPallini25-Apr-22 21:43
mveCPallini25-Apr-22 21:43 
AnswerRe: vector, adding things Pin
Randor 26-Apr-22 16:03
professional Randor 26-Apr-22 16:03 
GeneralRe: vector, adding things Pin
Calin Negru26-Apr-22 23:09
Calin Negru26-Apr-22 23:09 
QuestionWhy won't VS2015 let me compile? Pin
charlieg21-Apr-22 8:17
charlieg21-Apr-22 8:17 
AnswerRe: Why won't VS2015 let me compile? Pin
Victor Nijegorodov21-Apr-22 9:14
Victor Nijegorodov21-Apr-22 9:14 
GeneralRe: Why won't VS2015 let me compile? Pin
charlieg21-Apr-22 9:51
charlieg21-Apr-22 9:51 
GeneralRe: Why won't VS2015 let me compile? Pin
Victor Nijegorodov21-Apr-22 10:25
Victor Nijegorodov21-Apr-22 10:25 
GeneralMessage Closed Pin
25-Apr-22 20:44
professionalMasudul Herry25-Apr-22 20:44 
GeneralRe: Why won't VS2015 let me compile? Pin
Victor Nijegorodov26-Apr-22 1:54
Victor Nijegorodov26-Apr-22 1:54 
GeneralRe: Why won't VS2015 let me compile? Pin
Richard Deeming26-Apr-22 2:41
mveRichard Deeming26-Apr-22 2:41 
GeneralRe: Why won't VS2015 let me compile? Pin
Richard MacCutchan26-Apr-22 2:41
mveRichard MacCutchan26-Apr-22 2:41 
AnswerRe: Why won't VS2015 let me compile? Pin
Greg Utas21-Apr-22 12:13
professionalGreg Utas21-Apr-22 12:13 
GeneralRe: Why won't VS2015 let me compile? Pin
charlieg25-Apr-22 0:56
charlieg25-Apr-22 0:56 
JokeRe: Why won't VS2015 let me compile? Pin
Randor 21-Apr-22 14:04
professional Randor 21-Apr-22 14:04 
GeneralRe: Why won't VS2015 let me compile? Pin
charlieg22-Apr-22 0:19
charlieg22-Apr-22 0:19 
AnswerRe: Why won't VS2015 let me compile? Pin
charlieg22-Apr-22 0:29
charlieg22-Apr-22 0:29 
AnswerRe: Why won't VS2015 let me compile? Pin
Richard Andrew x6423-Apr-22 3:47
professionalRichard Andrew x6423-Apr-22 3:47 
GeneralRe: Why won't VS2015 let me compile? Pin
charlieg25-Apr-22 2:31
charlieg25-Apr-22 2:31 
QuestionMoving a STL container around Pin
Calin Negru15-Apr-22 22:16
Calin Negru15-Apr-22 22:16 
AnswerRe: Moving a STL container around Pin
Richard MacCutchan15-Apr-22 23:15
mveRichard MacCutchan15-Apr-22 23:15 
GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 0:18
Calin Negru16-Apr-22 0:18 
GeneralRe: Moving a STL container around Pin
Greg Utas16-Apr-22 1:00
professionalGreg Utas16-Apr-22 1:00 
If you add an object to an STL container (vector, list, set, map...), the object is copied into the container. The objects must all be of the same type, however. The only way to put polymorphic objects into a container is to use a container of pointers to their common base class, in which case the objects need to survive outside the container, probably by having been allocated from the heap.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.


modified 16-Apr-22 7:34am.

GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 3:01
Calin Negru16-Apr-22 3:01 
GeneralRe: Moving a STL container around Pin
Richard MacCutchan16-Apr-22 5:59
mveRichard MacCutchan16-Apr-22 5:59 
GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 9:34
Calin Negru16-Apr-22 9: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.