How can I get the return type of a member function in the following example?
template <typename Getter> class MyClass { typedef decltype(mygetter.get()) gotten_t; ... };
The problem, of course, is that I don't have a "mygetter" object when defining MyClass.
What I'm trying to do is: I create a cache that can use, as a key, everything that is returned by the recipient.
source share