File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 35933593a function parameter pack\iref {temp.variadic }.
35943594An \defnadj {explicit object}{member function} is a non-static member function
35953595with an explicit object parameter.
3596- An \defnadj {implicit object}{member function} is non-static member function
3596+ An \defnadj {implicit object}{member function} is a non-static member function
35973597without an explicit object parameter.
35983598
35993599\pnum
Original file line number Diff line number Diff line change 17991799auto q = p(1, 'a' , 3.14); // OK: outputs \tcode {1a3.14}
18001800q(); // OK: outputs \tcode {1a3.14}
18011801
1802- auto fact = [](this auto self, int n) -> int { // OK: explicit ject parameter
1802+ auto fact = [](this auto self, int n) -> int { // OK: explicit object parameter
18031803 return (n <= 1) ? 1 : n * self(n-1);
18041804};
18051805std::cout << fact(5); // OK: outputs 120
You can’t perform that action at this time.
0 commit comments