Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++ Bug: Compiling lambda functions #6

Open
salmanarif opened this issue Feb 8, 2015 · 2 comments
Open

g++ Bug: Compiling lambda functions #6

salmanarif opened this issue Feb 8, 2015 · 2 comments

Comments

@salmanarif
Copy link

If you get the following error during compilation of a file that has lambda functions:
In lambda function: ... error: ‘this’ was not captured for this lambda function ...
adding the reference capture & appears to fix it.

via StackOverflow

farrell236 pushed a commit to farrell236/hpce_2014_cw3 that referenced this issue Feb 9, 2015
@m8pple
Copy link
Contributor

m8pple commented Feb 9, 2015

Hrmm, that's a fun one. Out of interest, which g++ version was it? Is it a recent one (e.g.
4.8 or 4.9, or from the 4.6/4.7 era?

m8pple added a commit that referenced this issue Feb 9, 2015
@salmanarif
Copy link
Author

4.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants