Replace template by abstract class
This commit is contained in:
parent
22d9b128b9
commit
188a6cf39d
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user