Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Tom Tromey <tom@tromey.com>,
	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 14:44:43 -0400	[thread overview]
Message-ID: <80a71596-d869-8bbc-cc55-d4278f675343@polymtl.ca> (raw)
In-Reply-To: <875yi9bpbt.fsf@tromey.com>



On 2022-08-30 13:42, Tom Tromey wrote:
>>>>>> "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

Thanks, pushed.

Simon

      reply	other threads:[~2022-08-30 18:45 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
2022-08-30 18:44   ` Simon Marchi via Gdb-patches [this message]

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=80a71596-d869-8bbc-cc55-d4278f675343@polymtl.ca \
    --to=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    --cc=tom@tromey.com \
    /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