Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: Using make file PinmemberJochen Arndt15-Nov-12 3:20 
Questionhow to create an Un-sorted map in c++ Pinmembernarmada Padhy14-Nov-12 19:04 
AnswerRe: how to create an Un-sorted map in c++ PinmvpRichard MacCutchan14-Nov-12 22:01 
AnswerRe: how to create an Un-sorted map in c++ PinmemberStephen Hewitt14-Nov-12 23:57 
AnswerRe: how to create an Un-sorted map in c++ PinmemberArun S J18-Nov-12 19:20 
NewsSoftware Engineer (C++) needed in Singapore!! Pinmemberdarkxfire14-Nov-12 18:39 
GeneralRe: Software Engineer (C++) needed in Singapore!! PinmemberArun S J18-Nov-12 19:27 
QuestionError MSB6006: "CL.exe" Pinmemberjohn563213-Nov-12 23:41 
QuestionRe: Error MSB6006: "CL.exe" PinmemberDavidCrow14-Nov-12 4:23 
QuestionUDP ports 500 and 4500 are busy? Pinmemberv_iv13-Nov-12 19:46 
AnswerRe: UDP ports 500 and 4500 are busy? PinmvpRichard MacCutchan13-Nov-12 23:34 
QuestionI am Bemused about std::list<> Pingroupyu-jian13-Nov-12 5:17 
AnswerRe: I am Bemused about std::list<> PinmvpRichard MacCutchan13-Nov-12 6:37 
GeneralRe: I am Bemused about std::list<> [modified] PinmemberStephen Hewitt13-Nov-12 7:03 
Some of the code in question:
 std::list<SMyFrameData*> pFrameData; 
There's no capturing of pointers here, pFrameData is a std::list.
Only deleting a list node invalidates an iterator to it. Having an iterator to the first node then adding to the head is not a problem, you just end up with an iterator to the second item in the list (the same is true for pointers to list items).
Steve


modified 13-Nov-12 12:10pm.

GeneralRe: I am Bemused about std::list<> Pingroupyu-jian13-Nov-12 7:25 
GeneralRe: I am Bemused about std::list<> [modified] PinmvpRichard MacCutchan13-Nov-12 7:38 
GeneralRe: I am Bemused about std::list<> PinmemberStephen Hewitt13-Nov-12 16:04 
GeneralRe: I am Bemused about std::list<> [modified] PinmvpRichard MacCutchan13-Nov-12 21:59 
GeneralRe: I am Bemused about std::list<> PinmemberStephen Hewitt14-Nov-12 0:54 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan14-Nov-12 0:58 
GeneralRe: I am Bemused about std::list<> PinmemberStephen Hewitt14-Nov-12 1:58 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan14-Nov-12 2:30 
GeneralRe: I am Bemused about std::list<> PinmemberStephen Hewitt14-Nov-12 3:06 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan14-Nov-12 3:26 
GeneralRe: I am Bemused about std::list<> [modified] PinmemberStephen Hewitt14-Nov-12 3:30 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan14-Nov-12 4:36 
GeneralRe: I am Bemused about std::list<> PinmemberDavidCrow14-Nov-12 4:16 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan14-Nov-12 4:32 
GeneralRe: I am Bemused about std::list<> Pingroupyu-jian13-Nov-12 7:25 
GeneralRe: I am Bemused about std::list<> PinmvpRichard MacCutchan13-Nov-12 7:43 
QuestionRe: I am Bemused about std::list<> PinmemberDavidCrow13-Nov-12 9:05 
AnswerRe: I am Bemused about std::list<> PinmemberStephen Hewitt13-Nov-12 16:13 
QuestionPDF Accessing problem PinmemberBianChengNan12-Nov-12 18:22 
QuestionSendMessage(...) MFC is not working in win 7 enterprise edition Pinmembervikuseth12-Nov-12 9:02 
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition PinmvpRichard MacCutchan12-Nov-12 10:11 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pinmembervikuseth12-Nov-12 10:29 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition PinmvpRichard MacCutchan12-Nov-12 10:35 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pinmembervikuseth12-Nov-12 10:39 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition PinmvpRichard MacCutchan13-Nov-12 0:01 
QuestionRe: SendMessage(...) MFC is not working in win 7 enterprise edition PinmemberDavidCrow12-Nov-12 11:18 
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pinmembervikuseth12-Nov-12 23:07 
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pinmembervikuseth14-Nov-12 2:04 
QuestionDoes this way to clear all item from std::map have problem? Pingroupyu-jian11-Nov-12 2:47 
AnswerRe: Does this way to clear all item from std::map have problem? PinmvpRichard MacCutchan11-Nov-12 7:18 
GeneralRe: Does this way to clear all item from std::map have problem? Pingroupyu-jian11-Nov-12 20:50 
GeneralRe: Does this way to clear all item from std::map have problem? PinmvpRichard MacCutchan11-Nov-12 22:35 
GeneralRe: Does this way to clear all item from std::map have problem? PinmemberStephen Hewitt12-Nov-12 2:43 
GeneralRe: Does this way to clear all item from std::map have problem? Pingroupyu-jian12-Nov-12 4:06 
QuestionGetting pasted test PinmemberHadi Dayvary10-Nov-12 5:20 
AnswerRe: Getting pasted test PinmvpRichard MacCutchan10-Nov-12 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid