Bug 1434710 - Replaced typename IndexSequenceFor<Args...>::Type() with std::index_sequence_for<Args...> in js/src/frontend/EitherParser.h. r=botond draft
authorTom Bannister <tomabann@gmail.com>
Thu, 05 Apr 2018 16:26:18 +1000
changeset 778313 5a5e4ea3070b4cd7b3eb2898bf30a0e0735c318e
parent 778312 f75d0bd606ce4caa5ddf52a1d4c2574ac9516cb5
child 778314 17aed49ac1fe25b4fe4822e7d9bcd4d335122b63
push id105466
push userbmo:tomabann@gmail.com
push dateFri, 06 Apr 2018 06:41:20 +0000
reviewersbotond
bugs1434710
milestone61.0a1
Bug 1434710 - Replaced typename IndexSequenceFor<Args...>::Type() with std::index_sequence_for<Args...> in js/src/frontend/EitherParser.h. r=botond MozReview-Commit-ID: GeCcPUK35g7
js/src/frontend/EitherParser.h
--- a/js/src/frontend/EitherParser.h
+++ b/js/src/frontend/EitherParser.h
@@ -45,20 +45,20 @@ struct InvokeMemberFunction
     explicit InvokeMemberFunction(ActualArgs&&... actualArgs)
       : args { mozilla::Forward<ActualArgs>(actualArgs)... }
     {}
 
     template<class Parser>
     auto
     match(Parser* parser)
       -> decltype(this->matchInternal(GetThis<Parser>::get(parser),
-                                      typename mozilla::IndexSequenceFor<Args...>::Type()))
+                                      std::index_sequence_for<Args...>))
     {
         return this->matchInternal(GetThis<Parser>::get(parser),
-                                   typename mozilla::IndexSequenceFor<Args...>::Type());
+                                   std::index_sequence_for<Args...>);
     }
 };
 
 // |this|-computing templates.
 
 template<class Parser>
 struct GetParser
 {