From 57e14e8963b24f6f43f5d28f975b4b0f680e9346 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 22 May 2022 20:07:56 +0100 Subject: [PATCH] Fix C2275 error with latest Visual Studio 2022 This fixes the following build error: src\flexasio\FlexASIO\config.cpp(66): error C2275: 'flexasio::`anonymous-namespace'::RemoveOptional>::Value': expected an expression instead of a type --- src/flexasio/FlexASIO/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flexasio/FlexASIO/config.cpp b/src/flexasio/FlexASIO/config.cpp index 98700374..e9f8f7ba 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; });