mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
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:
parent
d3e5d8544e
commit
db4fd78391
@ -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(
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user