This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This typedef uses the type before it's complete, which Clang rejects. It's not necessary anyay, we can just use decltype directly where needed. The _Invoker type isn't user-facing and doesn't need a result_type. PR libstdc++/77998 * include/std/future (__future_base::_Deferred_state) (__future_base::_Async_state_impl): Use decltype to deduce return type, instead of _Invoker::result_type. * include/std/thread (thread::_Invoker::operator()): Likewise. (thread::_Invoker::result_type): Remove. Tested powerpc64le-linux, committed to trunk.
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |