From fb6dd483e3a1e618c3ac7e950995e59f1bf6c895 Mon Sep 17 00:00:00 2001 From: Romain Boman <romain.boman@gmail.com> Date: Mon, 26 Oct 2020 15:04:44 +0100 Subject: [PATCH] partially fix msvc build --- fpm/src/fTimers.cpp | 2 +- fpm/src/fTimers.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fpm/src/fTimers.cpp b/fpm/src/fTimers.cpp index f2d6838..9a8f5f8 100644 --- a/fpm/src/fTimers.cpp +++ b/fpm/src/fTimers.cpp @@ -87,7 +87,7 @@ void Timers::write(std::ostream &out) const << std::setw(15) << std::right << "CPU (s)" << std::endl; - for (auto const tm : timers) + for (auto const &tm : timers) { out << std::setw(20) << std::left << tm.first << std::setw(15) << std::right << tm.second.getWall() diff --git a/fpm/src/fTimers.h b/fpm/src/fTimers.h index 510df45..e08840b 100644 --- a/fpm/src/fTimers.h +++ b/fpm/src/fTimers.h @@ -21,6 +21,8 @@ #include "wObject.h" #include <map> #include <chrono> +#include <ctime> +#include <string> namespace fpm { -- GitLab