Merge pull request #14091 from Simonx22/ConfigChangedCallbackID-size_t-fix

CPUThreadConfigCallback: Use maximum value of size_t instead of -1 as default value ConfigChangedCallbackID
This commit is contained in:
Jordan Woyak
2025-11-09 00:23:48 -06:00
committed by GitHub

View File

@@ -3,6 +3,8 @@
#pragma once
#include <limits>
#include "Common/Config/Config.h"
// This file lets you register callbacks like in Common/Config/Config.h, with the difference that
@@ -13,7 +15,7 @@ namespace CPUThreadConfigCallback
{
struct ConfigChangedCallbackID
{
size_t id = -1;
size_t id = std::numeric_limits<size_t>::max();
bool operator==(const ConfigChangedCallbackID&) const = default;
};