However, on my Mac, the clang compiler gives me 6 errors:
No matching function for call to '__make_async_assoc_state' future;
No matching function for call to '__make_deferred_assoc_state' future;
etc.
Interesting. Do you have Mac or Windows? While searching for solutions, I came across with someone saying that it may not compile specifically on Mac...
Thank you, anyways!
I also tried a different way. I have created a global variable in my myClass, returning this variable in the foo() method, and having the following run() method: