[*] Clang 15 build regression: AuList<T> before T definition

This commit is contained in:
Reece Wilson 2023-08-22 20:17:57 +01:00
parent a4d317a48d
commit 30fc75cbab

View File

@ -11,7 +11,14 @@
namespace Aurora::Console::Commands
{
struct Command;
struct CommandDispatch;
struct CommandDispatch
{
Parse::ParsedObject arguments;
AuSPtr<ICommandSubscriber> callback;
CommandDispatch(const Parse::ParsedObject &arguments, const AuSPtr<ICommandSubscriber> &callback) : arguments(arguments), callback(callback) {}
};
static AuHashMap<AuString, Command> gCommands;
static AuList<Hooks::LineHook_cb> gLineCallbacks;
@ -30,14 +37,6 @@ namespace Aurora::Console::Commands
Command(AuString tag, Parse::ParseObject commandStructure, AuSPtr<ICommandSubscriber> &&callback) : tag(tag), commandStructure(commandStructure), callback(AuMove(callback)) {}
};
struct CommandDispatch
{
Parse::ParsedObject arguments;
AuSPtr<ICommandSubscriber> callback;
CommandDispatch(const Parse::ParsedObject &arguments, const AuSPtr<ICommandSubscriber> &callback) : arguments(arguments), callback(callback) {}
};
enum class EDispatchType
{
eNow,