Skip to content

Commit

Permalink
fix: log rime::path by operator overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored and lotem committed Mar 28, 2024
1 parent 1f9f524 commit 060555c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rime/common.h
Expand Up @@ -127,6 +127,11 @@ class path : public std::filesystem::path {
friend path operator/(const fs_path& lhs, const char* rhs) {
return path(lhs) /= path(rhs);
}
#ifdef RIME_ENABLE_LOGGING
friend std::ostream& operator<<(std::ostream& os, const path& p) {
return os << p.u8string();
}
#endif
};

} // namespace rime
Expand Down

0 comments on commit 060555c

Please sign in to comment.