From cadf0d1de5ca5a845b0e6fdb3aaaff7c8c741f9e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 23 Feb 2022 01:29:28 -0800 Subject: Make some local constexpr variables static --- al/eax_exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'al/eax_exception.cpp') diff --git a/al/eax_exception.cpp b/al/eax_exception.cpp index c8ecf79d..fdeecaaa 100644 --- a/al/eax_exception.cpp +++ b/al/eax_exception.cpp @@ -30,10 +30,10 @@ std::string EaxException::make_message( return std::string{}; } - constexpr auto left_prefix = "["; + static constexpr char left_prefix[] = "["; const auto left_prefix_size = std::string::traits_type::length(left_prefix); - constexpr auto right_prefix = "] "; + static constexpr char right_prefix[] = "] "; const auto right_prefix_size = std::string::traits_type::length(right_prefix); const auto what_size = -- cgit v1.2.3