Skip to content

Instantly share code, notes, and snippets.

@bradtgmurray
Created May 10, 2012 14:21
Show Gist options
  • Save bradtgmurray/2653311 to your computer and use it in GitHub Desktop.
Save bradtgmurray/2653311 to your computer and use it in GitHub Desktop.
struct Thing {};
typedef boost::shared_ptr<Thing> ThingPtr;
ThingPtr GetThing();
void DoStuffWithThing(Thing* barePtr);
void main()
{
ThingPtr thing = GetThing();
DoStuffWithThing(thing.get());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment