Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- auto f(auto first, auto second){
- return first + second(first<<1, (first<<1)|1);
- }
- int main() {
- int a = 1;
- cout << f(a, [] (int _a, int _b) -> int {return _a + _b;}) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement