Jump to content
  • Advertisement
Sign in to follow this  
Zakwayda

Handle-based smart pointers

This topic is 5041 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anyone give me the general idea behind a handle-based smart pointer? I've heard of them, but can't seem to find any info (I think there's an article in the GPG series, but I can't afford any new books right now). The reason I'm curious is that it sounds like it might combine the relative advantages of the smart pointer and handle approaches, such as the reproducability of handles (i.e. for saving gamestates), and the convenience of pointer semantics (such as overloaded ->). I may have that all wrong though. So, if anyone could tell me a little about this method, I'd appreciate it.

Share this post


Link to post
Share on other sites
Advertisement
Actually, I beleive what you are talking about is simply a normal handle.

They are compared to smart pointers because both have a safety-layer that's put between you and the object. Smart pointers have themselves as the layer, and handles have whatever you are passing the handle too. However, there might be something more specific that you're talking about, so in that case disrgard what I just said.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!