From 87836eab5e2d9c02b05b9fbe041b6b264923f72e Mon Sep 17 00:00:00 2001 From: xNoerPlaysCodes Date: Tue, 5 May 2026 13:35:25 +0530 Subject: [PATCH] use std::vector instead of std::list; why would you use a linked list? --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5d49b09..2c6c04a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include @@ -8,7 +8,7 @@ using json = nlohmann::json; -std::list cmdList = { +std::vector cmdList = { { "topic", "Get a topic question", cmd::topicCommand }, { "coding", "Get a coding question", cmd::codingCommand }, { "close", "Close a ticket or forum post", cmd::closeCommand },