[PATCH v1] libcamera: utils: StringSplitter: Add `operator==`
Barnabás Pőcze
pobrn at protonmail.com
Wed Dec 4 15:54:24 CET 2024
If `cpp_debugstl=true` in the build configuration, then libstdc++ will
try to use `operator==` and the build will fail.
Implement `operator==` in terms of `operator!=` to avoid the build failure.
Signed-off-by: Barnabás Pőcze <pobrn at protonmail.com>
---
include/libcamera/base/utils.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/libcamera/base/utils.h b/include/libcamera/base/utils.h
index 957150cb..782d5c97 100644
--- a/include/libcamera/base/utils.h
+++ b/include/libcamera/base/utils.h
@@ -205,6 +205,10 @@ public:
iterator &operator++();
std::string operator*() const;
bool operator!=(const iterator &other) const;
+ bool operator==(const iterator &other) const
+ {
+ return !(*this != other);
+ }
private:
const StringSplitter *ss_;
--
2.47.1
More information about the libcamera-devel
mailing list