Function/Method pointers Pushed to a Deque
问题 I am making a Queue for running functions. I put the functions that require being called into a std::deque<bool(*)()> Then I later on cycle through the deque calling each function and letting it run, sometimes even doing things based on the return. The problem I am having is actually with regards to placing these functions inside of the deque. I have this deque inside a class called A2_Game . I also have a class called Button . My code resembles the following: class Button { bool DoInput(); }