From patchwork Thu May 2 08:09:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 19980 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 90833C32CA for ; Thu, 2 May 2024 08:09:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D250C63425; Thu, 2 May 2024 10:09:42 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="lP2O6mgN"; dkim-atps=neutral Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DFF2F6341E for ; Thu, 2 May 2024 10:09:37 +0200 (CEST) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-41ba1ba55e8so44019735e9.1 for ; Thu, 02 May 2024 01:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1714637377; x=1715242177; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jVX4VhJ4L0dZzf1MZ7MztEMJwO+LuD8IPNPIkNcynTQ=; b=lP2O6mgNFvGNl8haOHfDDTsWz/F8DctT2QSv8hdqgJLRFFT5UqJmL7qMTygbMbt8Sq QrGQnO1buKJ1qZ6w3DtopUEr5eYlmn6saqY+UgXzwklo+hnCeZEmWHjGjTmPS6XibogX Kjg/xLFER/91p4ed9qpmCVURA4IrlHqqMJJnjV+ugZ4gV3qVP1GuqONYxHBV8tqjhuNc C4FCU7Cee5P65Ttkm55UL45b92eSpndK/LMZrLLeL4yetWqAxscKk4IU8Gv25MwdzJkT BTlYcQyVXwlr/kz8Pmiq3F70NTFgn3VJtGQuSI2SBft01MYuAOBPctKIuRyaIkyg3Md0 vziA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714637377; x=1715242177; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jVX4VhJ4L0dZzf1MZ7MztEMJwO+LuD8IPNPIkNcynTQ=; b=rpqRQm3UFeALrD6njNg4CsoY/NDX7gyGTmjiJ6hc2lTOZ/oLbIBlLDG1qCR+zJ3IcP qt0/Glg1Rpx77H68YnMYXsOLFACvcTcZ0dAgoRX8QYcSGDTODd3vXX8K1GHfNhhAyGKG nzbHGrEli9K0PXDRCK6pOGBADUG0BJi27Hg3Fd6W9vbGkJxE3pnWx7MJ31ORrMyrqD8n Uv2AHwE+kFhvFUmKbMQwtHic1/JhJuVaSYImXU6bk0X6rltg1F1ehyreWdPqUx0fudlf xpaUXHeR/gr7CCJZnjSGQ96yKQX/wvSusSN9+Vh7Y+cDKxpl7ycqibcd6pG9uSbwvWeP yf8Q== X-Gm-Message-State: AOJu0Yy6RWtQS7cbJ3slMPG+n0hYucuGHMtAJJB58G2hdnhr/7wwt293 Am5T2m/X/tbclPS7cxw2d6JCXy8uWwHRF8upbEkT6Kk4RnfGaGvtu9LEhKlnyTuToPA/n7HQhsw S X-Google-Smtp-Source: AGHT+IFnu/ZGxFtU0fZgEFtwEj9pwWLxAf59CCgxjKrv0kSHvS/D7JLrGd3yjOoVCXmpwitEflqhUw== X-Received: by 2002:a05:600c:46ce:b0:41b:e609:bc97 with SMTP id q14-20020a05600c46ce00b0041be609bc97mr3543180wmo.2.1714637377304; Thu, 02 May 2024 01:09:37 -0700 (PDT) Received: from localhost.localdomain ([188.39.149.98]) by smtp.gmail.com with ESMTPSA id p12-20020a05600c1d8c00b0041bcb898984sm1049970wms.31.2024.05.02.01.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 01:09:36 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v1 5/5] libcamera: shared_mem_object: Remove is_standard_layout restriction Date: Thu, 2 May 2024 09:09:25 +0100 Message-Id: <20240502080925.31730-6-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240502080925.31730-1-naush@raspberrypi.com> References: <20240502080925.31730-1-naush@raspberrypi.com> 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" The shared_mem_object may be used to construct complex classes, so remove the standard layout type restriction. Signed-off-by: Naushir Patuck --- include/libcamera/internal/shared_mem_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/internal/shared_mem_object.h b/include/libcamera/internal/shared_mem_object.h index 9b1d939302a8..c9c0482062bd 100644 --- a/include/libcamera/internal/shared_mem_object.h +++ b/include/libcamera/internal/shared_mem_object.h @@ -56,7 +56,7 @@ private: Span mem_; }; -template::value>> +template class SharedMemObject : public SharedMem { public: