diff --git a/repos/base/include/util/string.h b/repos/base/include/util/string.h index ac975bac6..50a0bb72a 100644 --- a/repos/base/include/util/string.h +++ b/repos/base/include/util/string.h @@ -524,6 +524,16 @@ class Genode::String char const *string() const { return valid() ? _buf : ""; } + bool operator == (char const *other) const + { + return strcmp(string(), other) == 0; + } + + bool operator != (char const *other) const + { + return strcmp(string(), other) != 0; + } + template bool operator == (String const &other) const {