OSVR-Core
ComPtr.h
Go to the documentation of this file.
1 
11 // Copyright 2015 Sensics, Inc.
12 //
13 // Licensed under the Apache License, Version 2.0 (the "License");
14 // you may not use this file except in compliance with the License.
15 // You may obtain a copy of the License at
16 //
17 // http://www.apache.org/licenses/LICENSE-2.0
18 //
19 // Unless required by applicable law or agreed to in writing, software
20 // distributed under the License is distributed on an "AS IS" BASIS,
21 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 // See the License for the specific language governing permissions and
23 // limitations under the License.
24 
25 #ifndef INCLUDED_ComPtr_h_GUID_2738ADED_FE2F_4FBE_92BF_0D54DE8FFF08
26 #define INCLUDED_ComPtr_h_GUID_2738ADED_FE2F_4FBE_92BF_0D54DE8FFF08
27 
28 // Internal Includes
29 // - none
30 
31 // Library/third-party includes
32 #include <boost/intrusive_ptr.hpp>
33 #include <intrusive_ptr_COM.h>
34 
35 // Standard includes
36 // - none
37 
38 namespace comutils {
40 template <typename T> using Ptr = boost::intrusive_ptr<T>;
41 } // namespace comutils
42 
43 #endif // INCLUDED_ComPtr_h_GUID_2738ADED_FE2F_4FBE_92BF_0D54DE8FFF08
Header providing for usage of boost::intrusive_ptr with COM.
Definition: ComInit.cpp:34
boost::intrusive_ptr< T > Ptr
Template alias for our desired COM smart pointer.
Definition: ComPtr.h:40