From 20315fbd1c3af577b573134da57e0eab903cb740 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Sat, 24 May 2025 21:39:18 +0300 Subject: [PATCH] Fix crnlib compilation on MSVC2022 toolchain --- crnlib/crn_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crnlib/crn_timer.h b/crnlib/crn_timer.h index 4894a70..73536e5 100644 --- a/crnlib/crn_timer.h +++ b/crnlib/crn_timer.h @@ -49,7 +49,7 @@ namespace crnlib timer m_tm; public: - inline timed_scope(char* pName = "timed_scope") : m_pName(pName) { m_tm.start(); } + inline timed_scope(const char* pName = "timed_scope") : m_pName(pName) { m_tm.start(); } inline double get_elapsed_secs() const { return m_tm.get_elapsed_secs(); } inline double get_elapsed_ms() const { return m_tm.get_elapsed_ms(); }