Question 18
Back to Exercise
What did C++20 change about using [=] in a member function?
- A [=] is removed
- B Implicitly capturing this via [=] is deprecated; write [=, this] or [=, *this] Correct
- C [=] now copies the object
- D Nothing
Correct Answer: Option B
[=] looked like "copy everything" but actually captured this by pointer.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!