diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Handler.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Handler.hpp b/include/Handler.hpp index b84315d..63efa5d 100644 --- a/include/Handler.hpp +++ b/include/Handler.hpp @@ -1,7 +1,7 @@ #pragma once -#include <queue> #include <string> +#include <vector> #include <functional> #include <utility> @@ -13,7 +13,7 @@ namespace Handler { void *payload)> handler_function; struct CommandHandler { - CommandHandler(std::string command, handler_function func, std::queue<json> *description, void *payload = nullptr) + CommandHandler(std::string command, handler_function func, std::vector<json> *description, void *payload = nullptr) : command{std::move(command)}, func{std::move(func)}, description{description}, payload{payload} {} ~CommandHandler() { @@ -37,7 +37,7 @@ namespace Handler { std::string command; handler_function func{nullptr}; // handler takes ownership of the description, using it after passing is unsafe - std::queue<json> *description{nullptr}; + std::vector<json> *description{nullptr}; void *payload{nullptr}; }; |