Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
smart_ptr.h
1 #ifndef CT_SMART_PTR
2 #define CT_SMART_PTR
3 
4 #include "config.h"
5 
6 #if defined CT_USE_STD_SHARED_PTR
7 #include <memory>
8 namespace Cantera
9 {
10  using std::shared_ptr;
11 }
12 
13 #elif defined CT_USE_TR1_SHARED_PTR
14 #include <tr1/memory>
15 namespace Cantera
16 {
17  using std::tr1::shared_ptr;
18 }
19 
20 #elif defined CT_USE_MSFT_SHARED_PTR
21 #include <memory>
22 namespace Cantera
23 {
24  using std::tr1::shared_ptr;
25 }
26 
27 #elif defined CT_USE_BOOST_SHARED_PTR
28 #include <boost/shared_ptr.hpp>
29 namespace Cantera
30 {
31  using boost::shared_ptr;
32 }
33 
34 #else
35 #error "No shared_ptr implementation available"
36 #endif
37 
38 #endif