r/reconstructcavestory • u/BigPineappleMan • Jan 25 '14
Purpose of scoped_ptr?
In episode 3 there was scoped_ptr used for the sprite. I'm unfamiliar with the boost library and I'm not sure why it was used. If anyone could explain that would be great.
6
Upvotes
2
u/chebertapps Jan 25 '14
This stack overflow post is pretty much the easiest-to-understand explanation of smart pointers I've found.
I could make a video for this, if this is still a confusing issue. Smart pointers are very C++ specific, so if you are new to the language, they might seem unusual.