From 4cc8d43fa1b9a42d18c4328cdf838a4e8794994b Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 6 Mar 2020 23:41:00 -0500 Subject: [PATCH] android: log: TrimSourcePath: Cannot be constexpr. --- src/common/logging/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logging/log.h b/src/common/logging/log.h index becdfbeab7..3b3810851b 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h @@ -11,7 +11,7 @@ namespace Log { // trims up to and including the last of ../, ..\, src/, src\ in a string -constexpr const char* TrimSourcePath(std::string_view source) { +inline const char* TrimSourcePath(std::string_view source) { const auto rfind = [source](const std::string_view match) { return source.rfind(match) == source.npos ? 0 : (source.rfind(match) + match.size()); };