From a3ee1868f14c5f7a9ab9127b7e097fbf43e854a0 Mon Sep 17 00:00:00 2001 From: Owen Green Date: Tue, 23 Jun 2020 17:37:54 +0100 Subject: [PATCH] Supply missing lambda capture, because MSVC was sad --- include/FluidSCWrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index ab91c68..2f6c719 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -1294,7 +1294,7 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase auto& report = std::cout; report << "ERROR: " << msg->name << " type signature incorrect.\nExpect: ("; size_t i{0}; - ForEach(args, [&i](auto& x){ + ForEach(args, [&i,&expectedArgCount](auto& x){ report << ParamReader::argTypeToString(x); if(i < ( expectedArgCount - 1 ) ) {