Simplify umax

Add operator less and conversion operator.
This commit is contained in:
Nekotekina committed 2021-04-29 12:21:12 +03:00
1 parent b1736b6411
commit 5724d2d4c7
4 files changed
+11 -27

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ bool cfg::try_to_uint64(u64* out, const std::string& value, u64 min, u64 max)
bool cfg::try_to_enum_value(u64* out, decltype(&fmt_class_string<int>::format) func, const std::string& value)
{
u64 max = -1;
u64 max = umax;
for (u64 i = 0;; i++)
{