Added path views for abs and rel paths #6
@@ -910,6 +910,11 @@ abs_path<PathSystems> operator+(const abs_path_view<PathSystems>& a, const abs_p
|
||||
p += b;
|
||||
return p;
|
||||
}
|
||||
template<class PathSystems>
|
||||
bool operator==(const abs_path_view<PathSystems>& a, const abs_path<PathSystems>& b) noexcept
|
||||
{
|
||||
return b == a;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -830,6 +830,11 @@ rel_path<PathSystems> operator+(const rel_path_view<PathSystems>& a, const rel_p
|
||||
p += b;
|
||||
return p;
|
||||
}
|
||||
template<class PathSystems>
|
||||
bool operator==(const rel_path_view<PathSystems>& a, const rel_path<PathSystems>& b) noexcept
|
||||
{
|
||||
return b == a;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -784,6 +784,12 @@ UTEST(self_assign_and_append_tests, self_assign_and_append_tests)
|
||||
|
||||
UTEST(PathView, PathView)
|
||||
{
|
||||
{
|
||||
//test_abs_path path;
|
||||
//test_abs_path_view pathView = test_abs_path();
|
||||
//test_abs_path_view pathView = path;
|
||||
//pathView.str();
|
||||
}
|
||||
{
|
||||
test_abs_path path;
|
||||
test_abs_path_view pathView = path;
|
||||
|
||||
Reference in New Issue
Block a user