You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Captures in lambdas are const by default. So in order to
be able to move from them, we mark the entire lambda
as mutable. Thus, member variables in our closure object
are no longer const. Also, using a variable multiple times
on the same line and one of the uses is modifying the
variable is a no-no. Extract the pointer out of the unique_ptr
before performing modifying operation.
0 commit comments