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:
1919- [ lambda capture of parameter pack] ( #lambda-capture-of-parameter-pack )
2020- [ char8_t] ( #char8_t )
2121- [ constinit] ( #constinit )
22- - [ __ VA_OPT __ ] ( #__VA_OPT__ )
22+ - [ \_\_ VA \_ OPT \_\_ ] ( #__VA_OPT__ )
2323
2424C++20 includes the following new library features:
2525- [ concepts library] ( #concepts-library )
@@ -450,7 +450,7 @@ constinit const char* c = f(true); // OK
450450constinit const char* d = g(false); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
451451```
452452
453- ### `__VA_OPT__`
453+ ### \_\_VA\_OPT\_\_
454454Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
455455```c++
456456#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:
1818- [ lambda capture of parameter pack] ( #lambda-capture-of-parameter-pack )
1919- [ char8_t] ( #char8_t )
2020- [ constinit] ( #constinit )
21- - [ __ VA_OPT __ ] ( #__VA_OPT__ )
21+ - [ \_\_ VA \_ OPT \_\_ ] ( #__VA_OPT__ )
2222
2323C++20 includes the following new library features:
2424- [ concepts library] ( #concepts-library )
@@ -554,7 +554,7 @@ constinit const char* c = f(true); // OK
554554constinit const char* d = g(false); // ERROR: ` g ` is not constexpr, so ` d ` cannot be evaluated at compile-time.
555555```
556556
557- ### `__VA_OPT__`
557+ ### \_\_VA\_OPT\_\_
558558Helps support variadic macros by evaluating to the given argument if the variadic macro is non-empty.
559559```c++
560560#define F(...) f(0 __VA_OPT__(,) __VA_ARGS__)
You can’t perform that action at this time.
0 commit comments