Skip to content

Instantly share code, notes, and snippets.

@lcapaldo
Created March 7, 2012 12:17
Show Gist options
  • Save lcapaldo/1992779 to your computer and use it in GitHub Desktop.
Save lcapaldo/1992779 to your computer and use it in GitHub Desktop.
r.with_do([&]()
{
r.c += 1;
counter& shadow = r;
r.with_do([&]() { shadow.c += 1; });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment