File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 17
17
# error "Bitcoin cannot be compiled without assertions."
18
18
#endif
19
19
20
+ // Assumption: We assume a C++11 (ISO/IEC 14882:2011) compiler (minimum requirement).
21
+ // Example(s): We assume the presence of C++11 features everywhere :-)
22
+ // Note: MSVC does not report the expected __cplusplus value due to legacy
23
+ // reasons.
24
+ #if !defined(_MSC_VER)
25
+ // ISO Standard C++11 [cpp.predefined]p1:
26
+ // "The name __cplusplus is defined to the value 201103L when compiling a C++
27
+ // translation unit."
28
+ static_assert (__cplusplus >= 201103L , " C++11 standard assumed" );
29
+ #endif
30
+
20
31
// Assumption: We assume the floating-point types to fulfill the requirements of
21
32
// IEC 559 (IEEE 754) standard.
22
33
// Example(s): Floating-point division by zero in ConnectBlock, CreateTransaction
You can’t perform that action at this time.
0 commit comments