From: Tom Tromey <tom@tromey.com>
To: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdbsupport: add wrapper around result_of and invoke_result
Date: Tue, 30 Aug 2022 11:42:30 -0600 [thread overview]
Message-ID: <875yi9bpbt.fsf@tromey.com> (raw)
In-Reply-To: <20220826155754.2280118-1-simon.marchi@polymtl.ca> (Simon Marchi via Gdb-patches's message of "Fri, 26 Aug 2022 11:57:54 -0400")
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> 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
next prev parent reply other threads:[~2022-08-30 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 15:57 Simon Marchi via Gdb-patches
2022-08-26 15:59 ` Simon Marchi via Gdb-patches
2022-08-30 17:42 ` Tom Tromey [this message]
2022-08-30 18:44 ` Simon Marchi via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yi9bpbt.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox