Skip to content

Commit

Permalink
Fix 'duplicate symbol' error.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus authored and vitaut committed Jun 5, 2022
1 parent b59d8c3 commit d02c582
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ void write_escaped_path(basic_memory_buffer<Char>& quoted,
}
# ifdef _WIN32
template <>
void write_escaped_path<char>(basic_memory_buffer<char>& quoted,
const std::filesystem::path& p) {
inline void write_escaped_path<char>(basic_memory_buffer<char>& quoted,
const std::filesystem::path& p) {
auto s = p.u8string();
write_escaped_string<char>(
std::back_inserter(quoted),
string_view(reinterpret_cast<const char*>(s.c_str()), s.size()));
}
# endif
template <>
void write_escaped_path<std::filesystem::path::value_type>(
inline void write_escaped_path<std::filesystem::path::value_type>(
basic_memory_buffer<std::filesystem::path::value_type>& quoted,
const std::filesystem::path& p) {
write_escaped_string<std::filesystem::path::value_type>(
Expand Down

0 comments on commit d02c582

Please sign in to comment.