From patchwork Wed Dec 4 14:54:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 22161 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7F059BDB1C for ; Wed, 4 Dec 2024 14:54:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9E08B660C4; Wed, 4 Dec 2024 15:54:30 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=protonmail.com header.i=@protonmail.com header.b="spgumTDs"; dkim-atps=neutral Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BB2D5618B5 for ; Wed, 4 Dec 2024 15:54:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733324067; x=1733583267; bh=fTh3FAqvhUpwyqo2FPJE13W5KzYBU2KF0EN0Tr9cG14=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=spgumTDsLcMq5JyUiQWUDk/n3SLi4RQ/uEjhmllHBj+yVF/kVy7OTpSBdipqLX2DJ 6ZpMCbMuQtisWGTUogDdVfZUdVKlNefaVdmOevxQbrQ64EvCFM1KpLokNJWUW0nrX/ P/nPyZKdme8Ejk+W3rf1YjtmY5TWo5NA/ebW1ChNTaki7rO0f4zdLOrSF9yMzCMHNV cXVjyapVxjcnpR8JmJ3mEK0I5vmvzLGp6ybN1/FF1JLXn/5MV9RXt02H8a4luiTfDn T8wB7RfKJNwWKVrY6xAkXPIpagycRr1v0vOAG/XBt7Elvk+aRlgi4nIU2X2ZnoJ3uW TtPerZqhI2CXw== Date: Wed, 04 Dec 2024 14:54:24 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [PATCH v1] libcamera: utils: StringSplitter: Add `operator==` Message-ID: <20241204145422.968446-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: 0ad3ab9295967ff9928b42c964f34074dbc0d68f MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 --- 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_;