From 7e1f86478d0670fb56d357cfa916ec8ccd6ece7f Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 7 Mar 2024 01:03:16 +0100 Subject: [PATCH] make mutex mutable --- include/Profiling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Profiling.h b/include/Profiling.h index 72b0a99..c0b23c8 100644 --- a/include/Profiling.h +++ b/include/Profiling.h @@ -41,7 +41,7 @@ struct UnitExecutionTime { size_t measurement_count() const; private: - std::mutex m_mtx {}; + mutable std::mutex m_mtx {}; size_t m_total_calls {}; double m_sum {}; // sum of measurements squared (for running stdev)