4 ms·
Nice. I am a bit confused -- before c++17 it is impossible to capture this by copy; is it possible to capture other objects by copy? seems like it is?
by meshko 10y ago
Nice. I am a bit confused -- before c++17 it is impossible to capture this by copy; is it possible to capture other objects by copy? seems like it is?
- Kristine1975 10y agoYes, it is. Just write: [a](...){ ... } and the variable "a" will be captured by copy.