Bug 1623957 - Part 2: Replace mozilla::Decay with std::decay. r=jwalden

Differential Revision: https://phabricator.services.mozilla.com/D67649

--HG--
extra : moz-landing-system : lando
This commit is contained in:
André Bargull 2020-03-21 14:18:58 +00:00
parent d3e5d8544e
commit db4fd78391
2 changed files with 3 additions and 3 deletions

View File

@ -14,10 +14,10 @@
#include "mozilla/Attributes.h"
#include "mozilla/Tuple.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Utf8.h"
#include "mozilla/Variant.h"
#include <type_traits>
#include <utility>
#include "frontend/BCEParserHandle.h"
@ -31,7 +31,7 @@ namespace detail {
template <template <class Parser> class GetThis,
template <class This> class MemberFunction, typename... Args>
struct InvokeMemberFunction {
mozilla::Tuple<typename mozilla::Decay<Args>::Type...> args;
mozilla::Tuple<std::decay_t<Args>...> args;
template <class This, size_t... Indices>
auto matchInternal(This* obj, std::index_sequence<Indices...>) -> decltype(

View File

@ -184,7 +184,7 @@ class ThreadTrampoline {
// thread. To avoid this dangerous and highly non-obvious footgun, the
// standard requires a "decay" copy of the arguments at the cost of making it
// impossible to pass references between threads.
mozilla::Tuple<typename mozilla::Decay<Args>::Type...> args;
mozilla::Tuple<std::decay_t<Args>...> args;
// Protect the thread id during creation.
Mutex createMutex;