Skip to content

Commit

Permalink
Proper msvc check.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Oct 26, 2024
1 parent 538e82a commit 5d340bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sw/driver/target/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename T>
auto &set_loader(this T &obj, auto &&loader) {
obj.loader = [f = loader](TargetBase &t) {
Expand Down

0 comments on commit 5d340bf

Please sign in to comment.