-
-
Save jitpaul/666bee77bc5a21f53ff7cad3c7018972 to your computer and use it in GitHub Desktop.
Lambdas2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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