mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 16:00:40 +01:00
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.
This commit is contained in:
parent
faa3d4f1d8
commit
77774110f4
1 changed files with 0 additions and 7 deletions
|
@ -11,13 +11,6 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <limits>
|
#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
|
// Assumption: We assume the floating-point types to fulfill the requirements of
|
||||||
// IEC 559 (IEEE 754) standard.
|
// IEC 559 (IEEE 754) standard.
|
||||||
// Example(s): Floating-point division by zero in ConnectBlock, CreateTransaction
|
// Example(s): Floating-point division by zero in ConnectBlock, CreateTransaction
|
||||||
|
|
Loading…
Add table
Reference in a new issue