Fix ODR violation in ranges.h

This commit is contained in:
Pierre-Antoine Lacaze 2021-09-01 22:20:58 +02:00
parent 1d29a69139
commit dc683b5271

View File

@ -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<char> {
if (!is_utf8()) return find_escape<char>(begin, end);
auto result = find_escape_result<char>{end, nullptr, 0};