diff --git a/lager/store.hpp b/lager/store.hpp index 6af905a4..f0d649c9 100644 --- a/lager/store.hpp +++ b/lager/store.hpp @@ -169,8 +169,9 @@ class store base_t::send_down(); base_t::notify(); } + auto& ctxMsvcWorkaround = ctx; if constexpr (std::is_same_v) { + decltype(eff(ctxMsvcWorkaround))>) { eff(ctx); if constexpr (has_futures) p();