Merge pull request #257 from RicoAntonioFelix/master

Added capture in lambda expression...
This commit is contained in:
Gabriel Dos Reis 2015-10-02 02:54:00 -07:00
commit 2536585830

View File

@ -9325,7 +9325,7 @@ Let cleanup actions on the unwinding path be handled by [RAII](#Re-raii).
void f(int n)
{
void* p = malloc(1, n);
auto _ = finally([] { free(p); });
auto _ = finally([p] { free(p); });
// ...
}