From c5031f8d82133e1f67e10ab7386fc8cf77fd7b08 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 5 Jun 2022 18:00:58 +0500 Subject: [PATCH] Fix 'duplicate symbol' error. Signed-off-by: Vladislav Shchapov --- include/fmt/std.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 8d93b985161b..84e4497a2be1 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -30,8 +30,8 @@ void write_escaped_path(basic_memory_buffer& quoted, } # ifdef _WIN32 template <> -void write_escaped_path(basic_memory_buffer& quoted, - const std::filesystem::path& p) { +inline void write_escaped_path(basic_memory_buffer& quoted, + const std::filesystem::path& p) { auto s = p.u8string(); write_escaped_string( std::back_inserter(quoted), @@ -39,7 +39,7 @@ void write_escaped_path(basic_memory_buffer& quoted, } # endif template <> -void write_escaped_path( +inline void write_escaped_path( basic_memory_buffer& quoted, const std::filesystem::path& p) { write_escaped_string(