Advertisement
konalisp

He's really SSL-encrypted

Feb 22nd, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <functional>
  3.  
  4. using namespace std;
  5.  
  6. function<int(void)> gen();
  7.  
  8. int main(int argc, char **argv){
  9.     function<int(void)> a = gen();
  10.     cout << ([](int a){
  11.         return a;
  12.     }(a()));
  13.     return 0;
  14. }
  15.  
  16. function<int(void)> gen(){
  17.     return ([]{ return 4; });
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement