CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 22

Threaded View

  1. #7
    Join Date
    May 2009
    Posts
    2,413

    Re: Smart Pointer Map Lookup

    Quote Originally Posted by Peter_APIIT View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured