From aa29f4346a95f5fc9ff933bd717d91b6c63db50f Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Mon, 1 May 2017 17:49:08 +0100 Subject: [PATCH] Hadrons: weird bus error with recent macOS clang --- extras/Hadrons/Application.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/Hadrons/Application.cc b/extras/Hadrons/Application.cc index 62674f30..90ebcfd7 100644 --- a/extras/Hadrons/Application.cc +++ b/extras/Hadrons/Application.cc @@ -162,7 +162,8 @@ void Application::saveParameterFile(const std::string parameterFileName) sizeString((size)*locVol_) << " (" << sizeString(size) << "/site)" #define DEFINE_MEMPEAK \ -auto memPeak = [this](const std::vector &program)\ +GeneticScheduler::ObjFunc memPeak = \ +[this](const std::vector &program)\ {\ unsigned int memPeak;\ bool msg;\