Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


Yes, it is. Just write:

  [a](...){ ... }
and the variable "a" will be captured by copy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: