OSVR-Core
Classes | Macros | Functions
intrusive_ptr_COM.h File Reference

Header providing for usage of boost::intrusive_ptr with COM. More...

#include <unknwn.h>
#include <boost/intrusive_ptr.hpp>

Go to the source code of this file.

Classes

class  detail::IntrusivePtrWrapper< T >
 

Functions

void intrusive_ptr_add_ref (IUnknown *ptr)
 
void intrusive_ptr_release (IUnknown *ptr)
 
template<typename T >
IntrusivePtrWrapper< Tdetail::AttachPtr (boost::intrusive_ptr< T > &ref, bool addRef=false)
 

Detailed Description

Header providing for usage of boost::intrusive_ptr with COM.

Based on the header found at: https://github.com/rengeln/nyx/blob/master/src/Prefix.h

It is essentially the code from the author's blog post, http://code-freeze.blogspot.com/2012/02/using-intrusiveptr-with-com.html , which describes usage and motivation more. However, it appears to have some small improvements (mainly in style, and C++11 usage), and usefully, it has a standard license associated with it.

Date
2011
Author
Robert Engeln engel.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om