IT Nursery
How do I capture by move (also known as rvalue reference) in a C++11 lambda? I am trying to write something like this: std::unique_ptr<int> myPointer(new int); std::function<void(void)> example =...
  • June 3, 2022
  • 0 Comments
IT Nursery
I am new to C++11. I am writing the following recursive lambda function, but it doesn’t compile. sum.cpp #include <iostream> #include <functional> auto term = (int a)->int { return...
  • June 3, 2022
  • 0 Comments
IT Nursery
There is a lot of talk about monads these days. I have read a few articles / blog posts, but I can’t go far enough with their examples to...
  • June 1, 2022
  • 0 Comments