From 5d340bfc049860b737b187755c1caf1fd7ccaabf Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sat, 26 Oct 2024 16:17:09 +0300 Subject: [PATCH] Proper msvc check. --- src/sw/driver/target/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sw/driver/target/base.h b/src/sw/driver/target/base.h index 00dfa772..36fe391a 100644 --- a/src/sw/driver/target/base.h +++ b/src/sw/driver/target/base.h @@ -167,7 +167,7 @@ struct SW_DRIVER_CPP_API TargetBase : TargetBaseData const Build &getSolution() const; const SwContext &getContext() const; -#ifdef __cpp_explicit_this_parameter +#if defined(_MSC_VER) && _MSC_VER >= 1932 || defined(__cpp_explicit_this_parameter) template auto &set_loader(this T &obj, auto &&loader) { obj.loader = [f = loader](TargetBase &t) {