From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9gRiNrdaDmPvBDAAWB0awg (envelope-from ) for ; Tue, 30 Aug 2022 14:45:11 -0400 Received: by simark.ca (Postfix, from userid 112) id CF6291E4A7; Tue, 30 Aug 2022 14:45:11 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ap9ky615; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6A6E81E222 for ; Tue, 30 Aug 2022 14:45:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D560D3AA940F for ; Tue, 30 Aug 2022 18:45:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D560D3AA940F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661885110; bh=XcUS0ZJtvtwEb6MfH/NxLTJQ6gqnjRHg9hnDvf71fR4=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ap9ky6155+ICQsVCXeGDv8ou/AoUnycWyToboye3Ebq8tA6Q3hGelXjbNMjICEYsC A0Y8ZAjvqFafkV4vnximde3qoLS1Hb6UhI11XG7FvgkXXMI4H8Jku1RKGfzjzlKehn mW9m28oz0uhqGLUMMCczuMUMUW3WMTur1QbMmHBM= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 38DCA3AA802E for ; Tue, 30 Aug 2022 18:44:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 38DCA3AA802E Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 27UIiiD0003987 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Aug 2022 14:44:49 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 27UIiiD0003987 Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 558771E222; Tue, 30 Aug 2022 14:44:44 -0400 (EDT) Message-ID: <80a71596-d869-8bbc-cc55-d4278f675343@polymtl.ca> Date: Tue, 30 Aug 2022 14:44:43 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] gdbsupport: add wrapper around result_of and invoke_result Content-Language: en-US To: Tom Tromey , Simon Marchi via Gdb-patches References: <20220826155754.2280118-1-simon.marchi@polymtl.ca> <875yi9bpbt.fsf@tromey.com> In-Reply-To: <875yi9bpbt.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 30 Aug 2022 18:44:44 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2022-08-30 13:42, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi via Gdb-patches writes: > > Simon> It complains about the use of std::result_of, which is deprecated in > Simon> C++17 and removed in C++20: > > Simon> https://en.cppreference.com/w/cpp/types/result_of > > Simon> Given we'll have to transition to std::invoke_result eventually, make a > Simon> GDB wrapper to mimimc std::invoke_result, which uses std::invoke_result > Simon> for C++ >= 17 and std::result_of otherwise. This way, it will be easy > Simon> to remove the wrapper in the future, just replace gdb:: with std::. > > This seems fine to me. Thanks. > > Tom Thanks, pushed. Simon