Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Unique ID of a computer. Pin
Russell'30-Aug-07 22:00
Russell'30-Aug-07 22:00 
AnswerRe: Unique ID of a computer. Pin
Sarath C30-Aug-07 22:09
Sarath C30-Aug-07 22:09 
QuestionA linked list is some kind of collection. [modified] Pin
6Qing8830-Aug-07 21:05
6Qing8830-Aug-07 21:05 
AnswerRe: A linked list is some kind of collection. Pin
Cedric Moonen30-Aug-07 21:29
Cedric Moonen30-Aug-07 21:29 
AnswerRe: A linked list is some kind of collection. Pin
jhwurmbach30-Aug-07 21:32
jhwurmbach30-Aug-07 21:32 
GeneralRe: A linked list is some kind of collection. Pin
Emilio Garavaglia30-Aug-07 22:04
Emilio Garavaglia30-Aug-07 22:04 
GeneralRe: A linked list is some kind of collection. Pin
jhwurmbach30-Aug-07 22:12
jhwurmbach30-Aug-07 22:12 
GeneralRe: A linked list is some kind of collection. Pin
Emilio Garavaglia30-Aug-07 22:44
Emilio Garavaglia30-Aug-07 22:44 
jhwurmbach wrote:
In this case, I would use smart-pointers anyway


Sure. but this introduce a level of indirection that influence the algorithm semantics
(like
for(mylist::iterator i=alist.begin(); i!=alist.end(); ++i) (**i).do_something(.);
)
(note there's two "*", so the algorithm where the "for" is, must be designed to track that,
or you've to design algorithms to have an extra "traits" parameter to define how to handle the dereference e the dereferenced type, that list is not directly aware of).
in other words, there is always something missing, whether the approach is.

What we can do is choose what to miss.





2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:

GeneralRe: A linked list is some kind of collection. Pin
jhwurmbach30-Aug-07 22:48
jhwurmbach30-Aug-07 22:48 
AnswerRe: A linked list is some kind of collection. Pin
Emilio Garavaglia30-Aug-07 22:15
Emilio Garavaglia30-Aug-07 22:15 
QuestionEdit box Pin
Kiran Pinjala30-Aug-07 20:21
Kiran Pinjala30-Aug-07 20:21 
AnswerRe: Edit box Pin
Nishad S30-Aug-07 20:44
Nishad S30-Aug-07 20:44 
AnswerRe: Edit box Pin
chandu00430-Aug-07 20:51
chandu00430-Aug-07 20:51 
GeneralRe: Edit box [modified] Pin
Kiran Pinjala30-Aug-07 21:10
Kiran Pinjala30-Aug-07 21:10 
GeneralRe: Edit box [modified] Pin
chandu00430-Aug-07 21:18
chandu00430-Aug-07 21:18 
AnswerRe: Edit box Pin
6Qing8830-Aug-07 21:31
6Qing8830-Aug-07 21:31 
GeneralRe: Edit box Pin
Nishad S30-Aug-07 21:34
Nishad S30-Aug-07 21:34 
GeneralRe: Edit box Pin
jhwurmbach30-Aug-07 21:34
jhwurmbach30-Aug-07 21:34 
AnswerRe: Edit box Pin
jhwurmbach30-Aug-07 21:36
jhwurmbach30-Aug-07 21:36 
AnswerRe: Edit box Pin
Anurag Gandhi30-Aug-07 23:41
professionalAnurag Gandhi30-Aug-07 23:41 
AnswerRe: Edit box Pin
Iain Clarke, Warrior Programmer31-Aug-07 0:05
Iain Clarke, Warrior Programmer31-Aug-07 0:05 
QuestionWaitForSingleObject Not working.. Help Plzz Pin
megha_gharote30-Aug-07 20:09
megha_gharote30-Aug-07 20:09 
Answersome more details required ot solve. Pin
chandu00430-Aug-07 20:19
chandu00430-Aug-07 20:19 
GeneralRe: some more details required ot solve. Pin
megha_gharote30-Aug-07 20:31
megha_gharote30-Aug-07 20:31 
GeneralRe: some more details required ot solve. Pin
chandu00430-Aug-07 20:39
chandu00430-Aug-07 20:39 

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.