Skip to content

Instantly share code, notes, and snippets.

@jitpaul

jitpaul/Lambdas2 Secret

Last active Apr 26, 2018
Embed
What would you like to do?
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