STIR  6.2.0
shared_ptr.h
Go to the documentation of this file.
1 //
2 //
12 /*
13  Copyright (C) 2011-07-01 - 2012, Kris Thielemans
14  This file is part of STIR.
15 
16  SPDX-License-Identifier: Apache-2.0
17 
18  See STIR/LICENSE.txt for details
19 */
20 
21 #ifndef __stir_SHARED_PTR__
22 #define __stir_SHARED_PTR__
23 
24 #include "stir/common.h"
25 #if defined(STIR_USE_BOOST_SHARED_PTR)
26 # include "boost/shared_ptr.hpp"
27 # include "boost/make_shared.hpp"
28 # include "boost/pointer_cast.hpp"
29 namespace stir
30 {
31 using boost::shared_ptr;
32 using boost::dynamic_pointer_cast;
33 using boost::static_pointer_cast;
35 # define MAKE_SHARED boost::make_shared
36 } // namespace stir
37 #else
38 
39 # include <memory>
40 
41 namespace stir
42 {
43 using std::shared_ptr;
44 using std::dynamic_pointer_cast;
45 using std::static_pointer_cast;
47 # define MAKE_SHARED std::make_shared
48 } // namespace stir
49 #endif
50 
51 #endif
Namespace for the STIR library (and some/most of its applications)
Definition: General_Reconstruction.cxx:6
A smart pointer class: multiple shared_ptr&#39;s refer to one object.
Definition: doxygen_doc_for_boost.h:116
basic configuration include file