From a83c316d22427dc8a4295c4f694b559cc16abe2a Mon Sep 17 00:00:00 2001 From: Owen Green Date: Wed, 16 Sep 2020 17:05:34 +0100 Subject: [PATCH] Refactor lambda to avoid hobson's choice between warnings on clang or errors on MSVC --- include/FluidSCWrapper.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 8c99a9b..cc6c8eb 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -1354,11 +1354,11 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase auto& report = std::cout; report << "ERROR: " << msg->name << " type signature incorrect.\nExpect: ("; size_t i{0}; - ForEach(args, [&i,&expectedArgCount,&report](auto& x){ - report << ParamReader::argTypeToString(x); - if(i < ( expectedArgCount - 1 ) ) + ForEach(args, [&i](auto& x){ + std::cout << ParamReader::argTypeToString(x); + if(i < (std::tuple_size::value - 1 ) ) { - report << " ,"; + std::cout << " ,"; } i++; });