Show a patch.

GET /api/patches/23485/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 23485,
    "url": "https://patchwork.libcamera.org/api/patches/23485/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/23485/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20250606164156.1442682-5-barnabas.pocze@ideasonboard.com>",
    "date": "2025-06-06T16:41:37",
    "name": "[RFC,v1,04/23] libcamera: base: cxx20: Add `type_identity{, _t}`",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "01fdecc7f03672b7e502b1a6dd8346b2b1b198db",
    "submitter": {
        "id": 216,
        "url": "https://patchwork.libcamera.org/api/people/216/?format=api",
        "name": "Barnabás Pőcze",
        "email": "barnabas.pocze@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/23485/mbox/",
    "series": [
        {
            "id": 5210,
            "url": "https://patchwork.libcamera.org/api/series/5210/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5210",
            "date": "2025-06-06T16:41:33",
            "name": "libcamera: Add `MetadataList`",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5210/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/23485/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/23485/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 6C872C3324\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  6 Jun 2025 16:42:34 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 96F5268DD2;\n\tFri,  6 Jun 2025 18:42:32 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1DF0768DB0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  6 Jun 2025 18:42:16 +0200 (CEST)",
            "from pb-laptop.local (185.182.215.79.nat.pool.zt.hu\n\t[185.182.215.79])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9F0D68DB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  6 Jun 2025 18:42:11 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"DFDA754l\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1749228131;\n\tbh=2fSH/OQqLg58+3C1YZ6eqgo7YNf9r85SKfkKGtI1OpU=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=DFDA754l+P+XyRQISlQC8Zf0k0M8FBMh2hHzqZ+BvLwHi66+VR2KSheqGRaHhZwxu\n\tubz/baKrc1o3KicOiqZfnHi1/9RMST1LS6GR7uSXMH6DNSXuJ3Kye+hLfdBd6GnuYV\n\tnKKqZXUx/KyjVC3z/yV39uiSO5Menbcd/Wb/32mA=",
        "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[RFC PATCH v1 04/23] libcamera: base: cxx20: Add `type_identity{,\n\t_t}`",
        "Date": "Fri,  6 Jun 2025 18:41:37 +0200",
        "Message-ID": "<20250606164156.1442682-5-barnabas.pocze@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.49.0",
        "In-Reply-To": "<20250606164156.1442682-1-barnabas.pocze@ideasonboard.com>",
        "References": "<20250606164156.1442682-1-barnabas.pocze@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "`type_identity_t` can be used to force non-deduced contexts\nin templates, such as:\n\n  void f(T x, type_identity_t<T> y)\n\nwhen calling `f(1u, 2)`, without `type_identity_t`, the compiler\ncould not unambiguously deduce `T` (unsigned int vs int). However,\nwith `type_identity_t`, the type of the argument passed to `y`\nwill not be used to deduce `T`, only the argument passed to `x`.\n\nSee https://en.cppreference.com/w/cpp/types/type_identity\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n include/libcamera/base/details/cxx20.h | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/include/libcamera/base/details/cxx20.h b/include/libcamera/base/details/cxx20.h\nindex 0d6173d1b..2d26db53e 100644\n--- a/include/libcamera/base/details/cxx20.h\n+++ b/include/libcamera/base/details/cxx20.h\n@@ -9,4 +9,7 @@\n \n namespace libcamera::details::cxx20 {\n \n+template<typename T> struct type_identity { using type = T; };\n+template<typename T> using type_identity_t = typename type_identity<T>::type;\n+\n } /* namespace libcamera::details::cxx20 */\n",
    "prefixes": [
        "RFC",
        "v1",
        "04/23"
    ]
}