3 ms·
Your link got eaten, but we don't have capture modifiers anymore. Captures are inferred, and you can override this with a keyword to take all captures by value
by steveklabnik 10y ago
Your link got eaten, but we don't have capture modifiers anymore. Captures are inferred, and you can override this with a keyword to take all captures by value instead. This still lets you get the same effect as C++, but we find that it's generally less verbose. It depends though!
- gpderetta 10y ago> you can override this with a keyword to take all captures by value instead that's what I meant by modifiers :). It is not unlike [&] and [=] I guess (except for the "tiny" detail that lifetimes are checked). BTW, I'm not sure what the [1] reference in my comment was supposed to point to though.