Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Non copyable values captured by fn~ closures can be copied #2828
The following program compiles and runs and will run the destructor twice:
referenced this issue
Jul 7, 2012
I don't think it's really fixed. If you modify the test case to include a "move" capture clause, it still reproduces:
The proper fix is the work on closure bounds I did not get to for 0.5!