Replace template by abstract class

This commit is contained in:
Thomas Basler 2023-08-05 01:01:53 +02:00
parent 22d9b128b9
commit 188a6cf39d

View File

@ -16,8 +16,7 @@ public:
bool isQueueEmpty(); bool isQueueEmpty();
bool isInitialized(); bool isInitialized();
template <typename T> void enqueCommand(std::shared_ptr<CommandAbstract> cmd)
void enqueCommand(std::shared_ptr<T> cmd)
{ {
_commandQueue.push(cmd); _commandQueue.push(cmd);
} }