File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ C++20 includes the following new language features:
19
19
- [ lambda capture of parameter pack] ( #lambda-capture-of-parameter-pack )
20
20
- [ char8_t] ( #char8_t )
21
21
- [ constinit] ( #constinit )
22
- - [ __ VA_OPT __ ] ( #__VA_OPT__ )
22
+ - [ \_\_ VA \_ OPT \_\_ ] ( #__VA_OPT__ )
23
23
24
24
C++20 includes the following new library features:
25
25
- [ concepts library] ( #concepts-library )
@@ -450,7 +450,7 @@ constinit const char* c = f(true); // OK
450
450
constinit const char* d = g(false); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
451
451
```
452
452
453
- ### `__VA_OPT__`
453
+ ### \_\_VA\_OPT\_\_
454
454
Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
455
455
```c++
456
456
#define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ C++20 includes the following new language features:
18
18
- [ lambda capture of parameter pack] ( #lambda-capture-of-parameter-pack )
19
19
- [ char8_t] ( #char8_t )
20
20
- [ constinit] ( #constinit )
21
- - [ __ VA_OPT __ ] ( #__VA_OPT__ )
21
+ - [ \_\_ VA \_ OPT \_\_ ] ( #__VA_OPT__ )
22
22
23
23
C++20 includes the following new library features:
24
24
- [ concepts library] ( #concepts-library )
@@ -554,7 +554,7 @@ constinit const char* c = f(true); // OK
554
554
constinit const char* d = g(false); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
555
555
```
556
556
557
- ### `__VA_OPT__`
557
+ ### \_\_VA\_OPT\_\_
558
558
Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
559
559
```c++
560
560
#define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)
You can’t perform that action at this time.
0 commit comments