mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
fix(app): correct port validation and remove redundant TOML helper
This commit is contained in:
@@ -27,14 +27,6 @@ std::optional<T> safe_get_value(const toml::table& table, std::string_view key,
|
||||
}
|
||||
return value;
|
||||
}
|
||||
template <typename U>
|
||||
requires std::convertible_to<U, std::string>
|
||||
std::optional<std::string> safe_get_value(const toml::table& table,
|
||||
std::string_view key,
|
||||
U&& default_value) {
|
||||
return safe_get_value<std::string>(
|
||||
table, key, std::string(std::forward<U>(default_value)));
|
||||
}
|
||||
|
||||
} // namespace TOML
|
||||
|
||||
|
||||
Reference in New Issue
Block a user