Skip to content

Commit c7b4648

Browse files
committed
assumptions: assume a C++17 compiler
This has already been the case since #20413.
1 parent 1e7dd58 commit c7b4648

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compat/assumptions.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
# error "Bitcoin cannot be compiled without assertions."
1818
#endif
1919

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 :-)
20+
// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
21+
// Example(s): We assume the presence of C++17 features everywhere :-)
2222
// Note: MSVC does not report the expected __cplusplus value due to legacy
2323
// reasons.
2424
#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++
25+
// ISO Standard C++17 [cpp.predefined]p1:
26+
// "The name __cplusplus is defined to the value 201703L when compiling a C++
2727
// translation unit."
28-
static_assert(__cplusplus >= 201103L, "C++11 standard assumed");
28+
static_assert(__cplusplus >= 201703L, "C++17 standard assumed");
2929
#endif
3030

3131
// Assumption: We assume the floating-point types to fulfill the requirements of

0 commit comments

Comments
 (0)