Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
meshko
on May 15, 2016
|
parent
|
context
|
favorite
| on:
Lambda expression comparison between C++11, C++14 ...
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
on May 15, 2016
[–]
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: