Bug 1623957 - Part 16: Replace mozilla::RemoveConst with std::remove_const. r=jwalden
authorAndré Bargull <andre.bargull@gmail.com>
Sat, 21 Mar 2020 14:31:43 +0000
changeset 520017 8ac78029b63659f12b16474c4e00efa31564cae7
parent 520016 150ae4897b766cbc8a893c71bc12ac5a8c42a404
child 520018 61a44ad12b15de4b222e16f582add510d5a5bde7
push id110801
push usershindli@mozilla.com
push dateSat, 21 Mar 2020 15:31:45 +0000
treeherderautoland@61a44ad12b15 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1623957
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1623957 - Part 16: Replace mozilla::RemoveConst with std::remove_const. r=jwalden Differential Revision: https://phabricator.services.mozilla.com/D67664
js/src/threading/Thread.h
--- a/js/src/threading/Thread.h
+++ b/js/src/threading/Thread.h
@@ -56,17 +56,17 @@ class Thread {
   };
 
   // Create a Thread in an initially unjoinable state. A thread of execution can
   // be created for this Thread by calling |init|. Some of the thread's
   // properties may be controlled by passing options to this constructor.
   template <typename O = Options,
             // SFINAE to make sure we don't try and treat functors for the other
             // constructor as an Options and vice versa.
-            typename NonConstO = typename mozilla::RemoveConst<O>::Type,
+            typename NonConstO = std::remove_const_t<O>,
             typename DerefO = std::remove_reference_t<NonConstO>,
             typename = std::enable_if_t<std::is_same_v<DerefO, Options>>>
   explicit Thread(O&& options = Options())
       : id_(ThreadId()), options_(std::forward<O>(options)) {
     MOZ_ASSERT(isInitialized());
   }
 
   // Start a thread of execution at functor |f| with parameters |args|. This