Skip to content

Commit ac41478

Browse files
committed
fix
1 parent a94dd5d commit ac41478

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/odr/internal/common/path.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,6 @@ RelPath RelPath::common_root(const RelPath &other) const {
411411

412412
} // namespace odr::internal
413413

414-
std::ostream &odr::internal::operator<<(std::ostream &os, const Path &p) {
415-
return os << p.m_path;
416-
}
417-
418414
std::size_t std::hash<::odr::internal::Path>::operator()(
419415
const ::odr::internal::Path &p) const {
420416
return p.hash();

src/odr/internal/common/path.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ class Path {
9292
std::uint32_t m_downwards;
9393
bool m_absolute;
9494

95-
friend std::ostream &operator<<(std::ostream &, const Path &);
95+
friend std::ostream &operator<<(std::ostream &os, const Path &p) {
96+
return os << p.m_path;
97+
}
9698

9799
void parent_();
98100
void join_(const std::string &);

0 commit comments

Comments
 (0)