|
-
August 1st, 2009, 05:34 PM
#7
Re: Smart Pointer Map Lookup
 Originally Posted by Peter_APIIT
This code cause run time error map iterator not deference able.
If it's a runtime error you're probably manipulating the map (restructuring it by making insertions or deletions) while you're iterating it. That's a big no-no.
When it comes to the behaviour of smart pointers (boost::shared_ptr) related to "bald" pointers - they're very close to totally identical in my view. I often amaze at this. Any difference is caught at compile time in my experience.
Last edited by nuzzle; August 1st, 2009 at 05:36 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|