Bridge++  Version 1.4.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.2rc"
18 #define BRIDGE_VERSION "1.4.0"
19 
20 // some #define options are set as compiler options from Makefile
21 
22 //#define USE_MPI
23 #define ENABLE_MULTI_INSTANCE
24 
25 // smart pointer support
26 
27 #ifdef cpp11_available
28 #undef cpp11_available
29 #endif
30 
31 #if defined(__INTEL_COMPILER)
32 // intel compiler does not set __cplusplus macro properly
33 #if (__INTEL_COMPILER >= 1400)
34 #define cpp11_available
35 #endif
36 
37 #else
38 
39 #if defined (__cplusplus) && __cplusplus >= 201103L
40 #define cpp11_available
41 #endif
42 #endif
43 
44 #if defined(LIB_CPP11) && defined(cpp11_available)
45 // use c++11 unique_ptr
46 #include <memory>
47 using std::unique_ptr;
48 #else
49 // use bridge alternative
50 #include "Tools/unique_pointer.h"
51 using Bridge::unique_ptr;
52 #endif
53 
54 #undef cpp11_available
55 #endif /* CONFIGURE_INCLUDED */