Config: Use maximum value of size_t instead of -1 as default value in ConfigChangedCallbackID

Co-authored-by: OatmealDome <julian@oatmealdome.me>
This commit is contained in:
Simonx22 2025-11-07 23:13:35 -05:00
parent f9b167d8c6
commit f67691d564

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include <functional> #include <functional>
#include <limits>
#include <map> #include <map>
#include <memory> #include <memory>
#include <optional> #include <optional>
@ -17,7 +18,7 @@ namespace Config
{ {
struct ConfigChangedCallbackID struct ConfigChangedCallbackID
{ {
size_t id = -1; size_t id = std::numeric_limits<size_t>::max();
bool operator==(const ConfigChangedCallbackID&) const = default; bool operator==(const ConfigChangedCallbackID&) const = default;
}; };