From dc683b527196ff23c8995813ba6fe3ef6bd4d8a6 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Lacaze Date: Wed, 1 Sep 2021 22:20:58 +0200 Subject: [PATCH] Fix ODR violation in ranges.h --- include/fmt/ranges.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index eac81a79..acff1574 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -437,7 +437,7 @@ auto find_escape(const Char* begin, const Char* end) return {begin, nullptr, 0}; } -auto find_escape(const char* begin, const char* end) +inline auto find_escape(const char* begin, const char* end) -> find_escape_result { if (!is_utf8()) return find_escape(begin, end); auto result = find_escape_result{end, nullptr, 0};