Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
configure.h
Go to the documentation of this file.
1 
14 #ifndef CONFIGURE_INCLUDED
15 #define CONFIGURE_INCLUDED
16 
17 #define BRIDGE_VERSION "1.5.3"
18 
19 // some #define options are set as compiler options from Makefile
20 
21 //#define USE_MPI
22 #define ENABLE_MULTI_INSTANCE
23 
24 // smart pointer support
25 
26 #ifdef cpp11_available
27 #undef cpp11_available
28 #endif
29 
30 #if defined(__INTEL_COMPILER)
31 // intel compiler does not set __cplusplus macro properly
32 #if (__INTEL_COMPILER >= 1400)
33 #define cpp11_available
34 #endif
35 
36 #else
37 
38 #if defined (__cplusplus) && __cplusplus >= 201103L
39 #define cpp11_available
40 #endif
41 #endif
42 
43 #if defined(LIB_CPP11) && defined(cpp11_available)
44 // use c++11 unique_ptr
45 #include <memory>
46 using std::unique_ptr;
47 #else
48 // use bridge alternative
49 #include "Tools/unique_pointer.h"
50 using Bridge::unique_ptr;
51 #endif
52 
53 #undef cpp11_available
54 #endif /* CONFIGURE_INCLUDED */