Bridge++  Ver. 1.3.x
configure.h
Go to the documentation of this file.
1 
14 #ifndef _CONFIG_H_
15 #define _CONFIG_H_
16 
17 // #define BRIDGE_VERSION "1.2rc"
18 #define BRIDGE_VERSION "$Rev: 1346 $"
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 __use_cpp11
28 #undef __use_cpp11
29 #endif
30 
31 #if defined(__INTEL_COMPILER)
32 // intel compiler does not set __cplusplus macro properly
33 #if (__INTEL_COMPILER >= 1400)
34 #define __use_cpp11
35 #endif
36 
37 #else
38 
39 #if defined (__cplusplus) && __cplusplus >= 201103L
40 #define __use_cpp11
41 #endif
42 #endif
43 
44 #if defined(LIB_CPP11) && defined(__use_cpp11)
45 // use c++11 unique_ptr
46 #include <memory>
47 using std::unique_ptr;
48 #else
49 // use bridge alternative
50 #include "unique_pointer.h"
51 using Bridge::unique_ptr;
52 #endif
53 
54 #undef __use_cpp11
55 #endif /* _CONFIG_H_ */