Skip to content

Instantly share code, notes, and snippets.

@jitpaul

jitpaul/Lambdas2 Secret

Last active April 26, 2018 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitpaul/666bee77bc5a21f53ff7cad3c7018972 to your computer and use it in GitHub Desktop.
Save jitpaul/666bee77bc5a21f53ff7cad3c7018972 to your computer and use it in GitHub Desktop.
Lambdas2
#include <memory>
using namespace std;
int main(){
unique_ptr<int> a(new int);
auto func = [b=move(a)](){};
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment