|
28 | 28 |
|
29 | 29 | // --- C++20 features ---
|
30 | 30 |
|
| 31 | +#if check(aggregate_paren_init, 0, 0, 0, 0, 0) |
| 32 | +// FIXME: 201902 in C++20 |
| 33 | +#error "wrong value for __cpp_aggregate_paren_init" |
| 34 | +#endif |
| 35 | + |
31 | 36 | #if defined(CHAR8_T) ? check(char8_t, 201811, 201811, 201811, 201811, 201811) : \
|
32 | 37 | defined(NO_CHAR8_T) ? check(char8_t, 0, 0, 0, 0, 0) : \
|
33 | 38 | check(char8_t, 0, 0, 0, 0, 201811)
|
34 | 39 | #error "wrong value for __cpp_char8_t"
|
35 | 40 | #endif
|
36 | 41 |
|
| 42 | +#if check(concepts, 0, 0, 0, 0, 201907) |
| 43 | +#error "wrong value for __cpp_concepts" |
| 44 | +#endif |
| 45 | + |
37 | 46 | #if check(conditional_explicit, 0, 0, 0, 0, 201806)
|
38 | 47 | #error "wrong value for __cpp_conditional_explicit"
|
39 | 48 | #endif
|
40 | 49 |
|
| 50 | +#if check(consteval, 0, 0, 0, 0, 0) |
| 51 | +// FIXME: 201811 in C++20 |
| 52 | +#error "wrong value for __cpp_consteval" |
| 53 | +#endif |
| 54 | + |
41 | 55 | // constexpr checked below
|
42 | 56 |
|
43 | 57 | #if check(constexpr_dynamic_alloc, 0, 0, 0, 0, 201907)
|
|
52 | 66 | #error "wrong value for __cpp_constinit"
|
53 | 67 | #endif
|
54 | 68 |
|
| 69 | +// deduction_guides checked below |
| 70 | + |
55 | 71 | #if check(designated_initializers, 0, 0, 0, 0, 201707)
|
56 | 72 | #error "wrong value for __cpp_designated_initializers"
|
57 | 73 | #endif
|
|
68 | 84 |
|
69 | 85 | // init_captures checked below
|
70 | 86 |
|
71 |
| -#if check(concepts, 0, 0, 0, 0, 201907) |
72 |
| -#error "wrong value for __cpp_concepts" |
| 87 | +#if check(modules, 0, 0, 0, 0, 0) |
| 88 | +// FIXME: 201907 in C++20 |
| 89 | +#error "wrong value for __cpp_modules" |
| 90 | +#endif |
| 91 | + |
| 92 | +#if check(using_enum, 0, 0, 0, 0, 0) |
| 93 | +// FIXME: 201907 in C++20 |
| 94 | +#error "wrong value for __cpp_using_enum" |
73 | 95 | #endif
|
74 | 96 |
|
75 | 97 | // --- C++17 features ---
|
|
113 | 135 | // static_assert checked below
|
114 | 136 |
|
115 | 137 | #if check(deduction_guides, 0, 0, 0, 201703, 201703)
|
| 138 | +// FIXME: 201907 in C++20 |
116 | 139 | #error "wrong value for __cpp_deduction_guides"
|
117 | 140 | #endif
|
118 | 141 |
|
|
0 commit comments