Comparision operators for Genode::Path

Ref #1934
This commit is contained in:
Emery Hemingway 2018-04-01 11:34:01 +02:00 committed by Christian Helmuth
parent f7ba777fff
commit 344d46ce78

View File

@ -329,6 +329,16 @@ class Genode::Path_base
return strcmp(_path, other) != 0;
}
bool operator == (Path_base const &other) const
{
return strcmp(_path, other._path) == 0;
}
bool operator != (Path_base const &other) const
{
return strcmp(_path, other._path) != 0;
}
char const *last_element()
{
return last_element(_path)+1;