I’m experimenting with decltype(auto) in a custom callable class template that simplifies the behavior of std::function. My goal is to maintain the exact return type, including qualifiers like constness, reference etc, of the callable object when it is invoked. Here is the very simplified version of the class. P.S. : C++ uses R instead of […]