diff --git a/OptiScaler/Config.h b/OptiScaler/Config.h index cc27555e..bb836909 100644 --- a/OptiScaler/Config.h +++ b/OptiScaler/Config.h @@ -102,13 +102,12 @@ template class CustomOptio } constexpr T value_or_default() && - requires(defaultState != NoDefault) - { - return this->has_value() ? std::move(this->value()) : std::move(_defaultValue); - } + requires(defaultState != NoDefault) { + return this->has_value() ? std::move(this->value()) : std::move(_defaultValue); + } - constexpr std::optional value_for_config(bool forceSave = false) - requires(defaultState == WithDefault) + constexpr std::optional value_for_config(bool forceSave = false) + requires(defaultState == WithDefault) { if (_volatile) {