aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-04 11:12:09 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-04 11:11:37 +0200
commit77774110f4dd591a71441851813d59c03c9e3c78 (patch)
tree2e7fce3e7d455f6bf87cb718b20dc2b8beba8cb3 /src/compat
parentfaa3d4f1d8ecff444be53215d72e32d71d9ce138 (diff)
Remove __cplusplus from compat/assumptions.h
It is unclear what the goal of this check is, given that the value may need to be set lower for the mimimum supported version of compilers that forgot to bump the value, see https://github.com/bitcoin/bitcoin/pull/28349#issuecomment-1745143612 . The minimum supported compiler versions are already documented in doc/dependencies.md and using an older compiler will already result in a compile failure, so this check can be removed as redundant. Especially given that it is only included in one file, where iwyu suggests to remove it.
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/assumptions.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compat/assumptions.h b/src/compat/assumptions.h
index 78bf3c743f..7b66ab1b15 100644
--- a/src/compat/assumptions.h
+++ b/src/compat/assumptions.h
@@ -11,13 +11,6 @@
#include <cstddef>
#include <limits>
-// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
-// Example(s): We assume the presence of C++17 features everywhere :-)
-// ISO Standard C++17 [cpp.predefined]p1:
-// "The name __cplusplus is defined to the value 201703L when compiling a C++
-// translation unit."
-static_assert(__cplusplus >= 201703L, "C++17 standard assumed");
-
// Assumption: We assume the floating-point types to fulfill the requirements of
// IEC 559 (IEEE 754) standard.
// Example(s): Floating-point division by zero in ConnectBlock, CreateTransaction