Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <functional>
- #include <string>
- const std::string operator "" _t(const char* s)
- {
- return std::string("^_^ ") + s;
- }
- int main(int argc, char **argv)
- {
- auto l = [](int n)
- {
- return [n](std::function<int(int)> f)
- {
- return f(n);
- };
- };
- std::cout << l(1)([](int n)
- {
- return n + 5;
- }) << "\t" << 0xfde12381276_t << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment