diff --git a/src/flexasio/FlexASIO/config.cpp b/src/flexasio/FlexASIO/config.cpp index 9870037..e9f8f7b 100644 --- a/src/flexasio/FlexASIO/config.cpp +++ b/src/flexasio/FlexASIO/config.cpp @@ -63,7 +63,7 @@ namespace flexasio { template struct RemoveOptional> { using Value = T; }; template void SetOption(const toml::Table& table, const std::string& key, T& option, Validator validator) { - ProcessTypedOption::Value>(table, key, [&](const RemoveOptional::Value& value) { + ProcessTypedOption::Value>(table, key, [&](const RemoveOptional::Value& value) { validator(value); option = value; });