Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSTL / Custom Linked List Pin
Fareed Rizkalla30-Aug-10 11:06
Fareed Rizkalla30-Aug-10 11:06 
AnswerRe: STL / Custom Linked List Pin
Luc Pattyn30-Aug-10 11:30
sitebuilderLuc Pattyn30-Aug-10 11:30 
GeneralRe: STL / Custom Linked List Pin
Fareed Rizkalla30-Aug-10 11:55
Fareed Rizkalla30-Aug-10 11:55 
GeneralRe: STL / Custom Linked List PinPopular
Luc Pattyn30-Aug-10 12:11
sitebuilderLuc Pattyn30-Aug-10 12:11 
GeneralRe: STL / Custom Linked List Pin
Blake Miller3-Sep-10 12:30
Blake Miller3-Sep-10 12:30 
GeneralRe: STL / Custom Linked List Pin
Luc Pattyn3-Sep-10 14:52
sitebuilderLuc Pattyn3-Sep-10 14:52 
AnswerRe: STL / Custom Linked List PinPopular
Maximilien30-Aug-10 13:43
Maximilien30-Aug-10 13:43 
AnswerRe: STL / Custom Linked List Pin
Emilio Garavaglia30-Aug-10 20:04
Emilio Garavaglia30-Aug-10 20:04 
Custom lists are typically deployed when object need themselves to form a chain (objects that knows about their containment and know who is before and after. For this STL has no solution)

Where no such need exist, a double linked list -however you implement it- can do nothing more that what std::list do. The algorithms to manage links are the same from about a century, and are nothing more that a swap between four pointers.

The only advantage happens when you can code and test them faster then learning how STL methods and concept are defined.

About portability ... Sorry but must disagree with many previous posts.
Simply, I cannot understand how a self contained code that does nothing more pointer assignment, new and delete, cannot be portable. It can be buggy, but not unportable. Who speaks about "portability" is just doing "marketing lies" (and simply repeating acritically what read on STL books: The prove is that is using the exact same phrase -including adverbs and commas- everybody else sustaining the same thesis is using, so it's not his own original thought).
The problem arise when your code need to interact with some other code doing his own implementation... and the two implementations conflict in prerequisite. But if normal good design rules are observed, I don't see that problem.

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


Questionre:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Alan Kurlansky30-Aug-10 11:05
Alan Kurlansky30-Aug-10 11:05 
AnswerRe: re:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Fareed Rizkalla30-Aug-10 11:10
Fareed Rizkalla30-Aug-10 11:10 
AnswerRe: re:looking for winsock listener tcp c++ example that supports multiple potential clients Pin
Moak30-Aug-10 12:00
Moak30-Aug-10 12:00 
QuestionOnInitDialog is not getting called from DoModal in VS2005 [modified] Pin
funwithdolphin30-Aug-10 2:49
funwithdolphin30-Aug-10 2:49 
AnswerRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Richard MacCutchan30-Aug-10 4:05
mveRichard MacCutchan30-Aug-10 4:05 
AnswerRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Eugen Podsypalnikov30-Aug-10 4:30
Eugen Podsypalnikov30-Aug-10 4:30 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin30-Aug-10 5:24
funwithdolphin30-Aug-10 5:24 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Eugen Podsypalnikov30-Aug-10 5:29
Eugen Podsypalnikov30-Aug-10 5:29 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 3:51
funwithdolphin31-Aug-10 3:51 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 21:53
funwithdolphin31-Aug-10 21:53 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 23:24
funwithdolphin31-Aug-10 23:24 
QuestionReplace exe in Install shield Pin
raju_shiva30-Aug-10 0:33
raju_shiva30-Aug-10 0:33 
AnswerRe: Replace exe in Install shield Pin
ThatsAlok30-Jun-11 23:59
ThatsAlok30-Jun-11 23:59 
QuestionHow to achieve pushbutton type effect using bitmaps Pin
sayonee29-Aug-10 22:23
sayonee29-Aug-10 22:23 
AnswerRe: How to achieve pushbutton type effect using bitmaps Pin
Sauro Viti30-Aug-10 6:43
professionalSauro Viti30-Aug-10 6:43 
QuestionMultiple includes Pin
Shy Agam29-Aug-10 21:49
Shy Agam29-Aug-10 21:49 
AnswerRe: Multiple includes Pin
Cedric Moonen29-Aug-10 22:38
Cedric Moonen29-Aug-10 22:38 

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.