CoolProp  6.6.0
An open-source fluid property and humid air property database
crossplatform_shared_ptr.h
Go to the documentation of this file.
1 #ifndef CROSSPLATFORM_SHARED_PTR
2 #define CROSSPLATFORM_SHARED_PTR
3 
4 // By default, we use shared_ptr from the std namespace, and include the memory header,
5 // but some compilers need different treatment. Cmake provides the tools to
6 // ensure that the correct header is identified as a compile-time check, and we use
7 // that capability to change the include and/or the namespace
8 
9 #if defined(SHARED_PTR_TR1_MEMORY_HEADER)
10 # include <tr1/memory>
11 #else
12 # include <memory>
13 #endif
14 
15 #if defined(SHARED_PTR_TR1_NAMESPACE)
16 using std::tr1::shared_ptr;
17 #else
18 using std::shared_ptr;
19 #endif
20 
21 #endif