DEV Community

Discussion on: Lambda Expressions in C++

Collapse
 
raghuram profile image
github_avenger • Edited

With using [&, divisor] as a capture, everything will be captured by value except for the variable that is explicitly listed.

Should that be captured by reference ??