From 59ff4f79f5d2c86fd264e767d74382cdc4ae20a9 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Mon, 27 Mar 2023 07:49:19 +0200 Subject: [PATCH] Update common.h --- include/spdlog/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 465e848a..d2b39b7a 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -143,11 +143,11 @@ struct format_string_wrapper : fmt_{fmt} , loc_{loc} {} - SPDLOG_CONSTEXPR const T fmt() + SPDLOG_CONSTEXPR T fmt() const { return fmt_; } - SPDLOG_CONSTEXPR const source_loc loc() + SPDLOG_CONSTEXPR source_loc loc() const { return source_loc{loc_.file_name(), loc_.line(), loc_.function_name()}; }