1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-26 15:32:04 +00:00

Switch to slightly more sensical 'none' type.

This commit is contained in:
Thomas Harte 2022-07-15 16:29:29 -04:00
parent 76d5e53094
commit 637161157c

View File

@ -44,7 +44,7 @@ template <typename Performer> struct TaskQueueStorage {
}; };
/// An implementation detail; provides a no-op implementation of time advances for TaskQueues without a Performer. /// An implementation detail; provides a no-op implementation of time advances for TaskQueues without a Performer.
template <> struct TaskQueueStorage<int> { template <> struct TaskQueueStorage<void> {
TaskQueueStorage() {} TaskQueueStorage() {}
protected: protected:
@ -65,7 +65,7 @@ template <> struct TaskQueueStorage<int> {
with the arguments supplied to TaskQueue's constructor, and that class will receive calls of the with the arguments supplied to TaskQueue's constructor, and that class will receive calls of the
form @c .perform(nanos) to update it to every batch of new actions. form @c .perform(nanos) to update it to every batch of new actions.
*/ */
template <bool perform_automatically, typename Performer = int> class TaskQueue: public TaskQueueStorage<Performer> { template <bool perform_automatically, typename Performer = void> class TaskQueue: public TaskQueueStorage<Performer> {
public: public:
template <typename... Args> TaskQueue(Args&&... args) : template <typename... Args> TaskQueue(Args&&... args) :
TaskQueueStorage<Performer>(std::forward<Args>(args)...), TaskQueueStorage<Performer>(std::forward<Args>(args)...),