Y
Hacker News
new
|
ask
|
show
|
jobs
by
soulbadguy
3604 days ago
I though in c++ the lambda get created on the stack like any other object.
1 comments
astn
3604 days ago
They do, but to actually use it, to pass it anywhere, you have to either wrap it in some other object (std::function, as comex pointed out) or use a template.
link