From 37a5ecdd2c72d1cc3e705bbf2fa5e25e7b63b99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=BCckl?= Date: Tue, 7 Jul 2020 17:14:37 +0200 Subject: [PATCH] patch gmock and gtest to allow c++17 compilation on msvc --- test/gmock/gmock.h | 348 ++++++++++++++++++++++----------------------- test/gtest/gtest.h | 104 +++++++------- 2 files changed, 226 insertions(+), 226 deletions(-) diff --git a/test/gmock/gmock.h b/test/gmock/gmock.h index 2a9cbd53..9f2401b7 100644 --- a/test/gmock/gmock.h +++ b/test/gmock/gmock.h @@ -295,70 +295,70 @@ template struct MatcherTuple; template <> -struct MatcherTuple< ::std::tr1::tuple<> > { - typedef ::std::tr1::tuple< > type; +struct MatcherTuple< ::std::tuple<> > { + typedef ::std::tuple< > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple > type; +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher > type; +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher > type; +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, +struct MatcherTuple< ::std::tuple > { + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher > type; }; template -struct MatcherTuple< ::std::tr1::tuple > { - typedef ::std::tr1::tuple, Matcher, Matcher, Matcher, + typedef ::std::tuple, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher, Matcher > type; }; @@ -382,7 +382,7 @@ struct Function; template struct Function { typedef R Result; - typedef ::std::tr1::tuple<> ArgumentTuple; + typedef ::std::tuple<> ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(); typedef IgnoredValue MakeResultIgnoredValue(); @@ -392,7 +392,7 @@ template struct Function : Function { typedef A1 Argument1; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1); typedef IgnoredValue MakeResultIgnoredValue(A1); @@ -402,7 +402,7 @@ template struct Function : Function { typedef A2 Argument2; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2); typedef IgnoredValue MakeResultIgnoredValue(A1, A2); @@ -412,7 +412,7 @@ template struct Function : Function { typedef A3 Argument3; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3); @@ -422,7 +422,7 @@ template struct Function : Function { typedef A4 Argument4; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4); @@ -433,7 +433,7 @@ template : Function { typedef A5 Argument5; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5); @@ -444,7 +444,7 @@ template : Function { typedef A6 Argument6; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6); @@ -455,7 +455,7 @@ template : Function { typedef A7 Argument7; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7); @@ -466,7 +466,7 @@ template : Function { typedef A8 Argument8; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8); @@ -477,7 +477,7 @@ template : Function { typedef A9 Argument9; - typedef ::std::tr1::tuple ArgumentTuple; + typedef ::std::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9); typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8, @@ -490,7 +490,7 @@ template : Function { typedef A10 Argument10; - typedef ::std::tr1::tuple ArgumentTuple; typedef typename MatcherTuple::type ArgumentMatcherTuple; typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10); @@ -910,7 +910,7 @@ class StlContainerView { // This specialization is used when RawContainer is a native array // represented as a (pointer, size) tuple. template -class StlContainerView< ::std::tr1::tuple > { +class StlContainerView< ::std::tuple > { public: typedef GTEST_REMOVE_CONST_( typename internal::PointeeOf::type) RawElement; @@ -918,11 +918,11 @@ class StlContainerView< ::std::tr1::tuple > { typedef const type const_reference; static const_reference ConstReference( - const ::std::tr1::tuple& array) { + const ::std::tuple& array) { using ::std::tr1::get; return type(get<0>(array), get<1>(array), kReference); } - static type Copy(const ::std::tr1::tuple& array) { + static type Copy(const ::std::tuple& array) { using ::std::tr1::get; return type(get<0>(array), get<1>(array), kCopy); } @@ -2182,26 +2182,26 @@ template class InvokeHelper; template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple<>&) { + static R Invoke(Function function, const ::std::tuple<>&) { return function(); } template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple<>&) { + const ::std::tuple<>&) { return (obj_ptr->*method_ptr)(); } }; template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { + static R Invoke(Function function, const ::std::tuple& args) { using ::std::tr1::get; return function(get<0>(args)); } @@ -2209,17 +2209,17 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args)); } }; template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { + static R Invoke(Function function, const ::std::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args)); } @@ -2227,17 +2227,17 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args)); } }; template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args)); @@ -2246,17 +2246,17 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args)); } }; template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args)); @@ -2265,7 +2265,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), get<3>(args)); @@ -2274,10 +2274,10 @@ class InvokeHelper > { template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2287,7 +2287,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args)); @@ -2296,10 +2296,10 @@ class InvokeHelper > { template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2309,7 +2309,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { + const ::std::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args), get<5>(args)); @@ -2318,10 +2318,10 @@ class InvokeHelper > { template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2331,7 +2331,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), @@ -2341,10 +2341,10 @@ class InvokeHelper > { template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2354,7 +2354,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), @@ -2364,10 +2364,10 @@ class InvokeHelper > { template -class InvokeHelper > { +class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2377,7 +2377,7 @@ class InvokeHelper > { template static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), @@ -2389,11 +2389,11 @@ class InvokeHelper > { template -class InvokeHelper > { public: template - static R Invoke(Function function, const ::std::tr1::tuple& args) { using ::std::tr1::get; return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), @@ -2404,7 +2404,7 @@ class InvokeHelper static R InvokeMethod(Class* obj_ptr, MethodPtr method_ptr, - const ::std::tr1::tuple& args) { using ::std::tr1::get; return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), @@ -2517,21 +2517,21 @@ class CallableHelper { // An INTERNAL macro for extracting the type of a tuple field. It's // subject to change without notice - DO NOT USE IN USER CODE! #define GMOCK_FIELD_(Tuple, N) \ - typename ::std::tr1::tuple_element::type + typename ::std::tuple_element::type // SelectArgs::type is the // type of an n-ary function whose i-th (1-based) argument type is the // k{i}-th (0-based) field of ArgumentTuple, which must be a tuple // type, and whose return type is Result. For example, -// SelectArgs, 0, 3>::type +// SelectArgs, 0, 3>::type // is int(bool, long). // // SelectArgs::Select(args) // returns the selected fields (k1, k2, ..., k_n) of args as a tuple. // For example, -// SelectArgs, 2, 0>::Select( +// SelectArgs, 2, 0>::Select( // ::std::tr1::make_tuple(true, 'a', 2.5)) -// returns ::std::tr1::tuple (2.5, true). +// returns ::std::tuple (2.5, true). // // The numbers in list k1, k2, ..., k_n must be >= 0, where n can be // in the range [0, 10]. Duplicates are allowed and they don't have @@ -2769,7 +2769,7 @@ struct ExcessiveArg {}; template class ActionHelper { public: - static Result Perform(Impl* impl, const ::std::tr1::tuple<>& args) { + static Result Perform(Impl* impl, const ::std::tuple<>& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl<>(args, ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), @@ -2778,7 +2778,7 @@ class ActionHelper { } template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { + static Result Perform(Impl* impl, const ::std::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, get<0>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), @@ -2787,7 +2787,7 @@ class ActionHelper { } template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { + static Result Perform(Impl* impl, const ::std::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, get<0>(args), get<1>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), @@ -2796,7 +2796,7 @@ class ActionHelper { } template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { + static Result Perform(Impl* impl, const ::std::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, get<0>(args), get<1>(args), get<2>(args), ExcessiveArg(), ExcessiveArg(), @@ -2805,7 +2805,7 @@ class ActionHelper { } template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, get<0>(args), @@ -2815,7 +2815,7 @@ class ActionHelper { } template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, @@ -2826,7 +2826,7 @@ class ActionHelper { template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, @@ -2837,7 +2837,7 @@ class ActionHelper { template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl(args, @@ -2848,7 +2848,7 @@ class ActionHelper { template - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl - static Result Perform(Impl* impl, const ::std::tr1::tuple& args) { using ::std::tr1::get; return impl->template gmock_PerformImpl { template bool TupleMatches(const MatcherTuple& matcher_tuple, const ValueTuple& value_tuple) { - using ::std::tr1::tuple_size; + using ::std::tuple_size; // Makes sure that matcher_tuple and value_tuple have the same // number of fields. GTEST_COMPILE_ASSERT_(tuple_size::value == @@ -5447,7 +5447,7 @@ template void ExplainMatchFailureTupleTo(const MatcherTuple& matchers, const ValueTuple& values, ::std::ostream* os) { - using ::std::tr1::tuple_size; + using ::std::tuple_size; TuplePrefix::value>::ExplainMatchFailuresTo( matchers, values, os); } @@ -5459,7 +5459,7 @@ void ExplainMatchFailureTupleTo(const MatcherTuple& matchers, template class TransformTupleValuesHelper { private: - typedef typename ::std::tr1::tuple_size TupleSize; + typedef typename ::std::tuple_size TupleSize; public: // For each member of tuple 't', taken in order, evaluates '*out++ = f(t)'. @@ -5979,12 +5979,12 @@ class MatchesRegexMatcher { class name##2Matcher { \ public: \ template \ - operator Matcher< ::std::tr1::tuple >() const { \ - return MakeMatcher(new Impl< ::std::tr1::tuple >); \ + operator Matcher< ::std::tuple >() const { \ + return MakeMatcher(new Impl< ::std::tuple >); \ } \ template \ - operator Matcher&>() const { \ - return MakeMatcher(new Impl&>); \ + operator Matcher&>() const { \ + return MakeMatcher(new Impl&>); \ } \ private: \ template \ @@ -7139,7 +7139,7 @@ class PointwiseMatcher { // reference, as they may be expensive to copy. We must use tuple // instead of pair here, as a pair cannot hold references (C++ 98, // 20.2.2 [lib.pairs]). - typedef ::std::tr1::tuple InnerMatcherArg; + typedef ::std::tuple InnerMatcherArg; Impl(const TupleMatcher& tuple_matcher, const RhsStlContainer& rhs) // mono_tuple_matcher_ holds a monomorphic version of the tuple matcher. @@ -7876,7 +7876,7 @@ class UnorderedElementsAreMatcher { typedef typename View::value_type Element; typedef ::std::vector > MatcherVec; MatcherVec matchers; - matchers.reserve(::std::tr1::tuple_size::value); + matchers.reserve(::std::tuple_size::value); TransformTupleValues(CastAndAppendTransform(), matchers_, ::std::back_inserter(matchers)); return MakeMatcher(new UnorderedElementsAreMatcherImpl( @@ -7901,7 +7901,7 @@ class ElementsAreMatcher { typedef typename View::value_type Element; typedef ::std::vector > MatcherVec; MatcherVec matchers; - matchers.reserve(::std::tr1::tuple_size::value); + matchers.reserve(::std::tuple_size::value); TransformTupleValues(CastAndAppendTransform(), matchers_, ::std::back_inserter(matchers)); return MakeMatcher(new ElementsAreMatcherImpl( @@ -10666,7 +10666,7 @@ using internal::FunctionMocker; #define GMOCK_METHOD0_(tn, constness, ct, Method, ...) \ GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \ ) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 0), \ this_method_does_not_take_0_arguments); \ @@ -10685,7 +10685,7 @@ using internal::FunctionMocker; #define GMOCK_METHOD1_(tn, constness, ct, Method, ...) \ GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \ GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 1), \ this_method_does_not_take_1_argument); \ @@ -10705,7 +10705,7 @@ using internal::FunctionMocker; GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \ GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \ GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 2), \ this_method_does_not_take_2_arguments); \ @@ -10727,7 +10727,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \ GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \ GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 3), \ this_method_does_not_take_3_arguments); \ @@ -10753,7 +10753,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \ GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \ GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 4), \ this_method_does_not_take_4_arguments); \ @@ -10781,7 +10781,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \ GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \ GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 5), \ this_method_does_not_take_5_arguments); \ @@ -10811,7 +10811,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \ GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \ GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 6), \ this_method_does_not_take_6_arguments); \ @@ -10843,7 +10843,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \ GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \ GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 7), \ this_method_does_not_take_7_arguments); \ @@ -10877,7 +10877,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \ GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7, \ GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 8), \ this_method_does_not_take_8_arguments); \ @@ -10913,7 +10913,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7, \ GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8, \ GMOCK_ARG_(tn, 9, __VA_ARGS__) gmock_a9) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 9), \ this_method_does_not_take_9_arguments); \ @@ -10953,7 +10953,7 @@ using internal::FunctionMocker; GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8, \ GMOCK_ARG_(tn, 9, __VA_ARGS__) gmock_a9, \ GMOCK_ARG_(tn, 10, __VA_ARGS__) gmock_a10) constness { \ - GTEST_COMPILE_ASSERT_((::std::tr1::tuple_size< \ + GTEST_COMPILE_ASSERT_((::std::tuple_size< \ tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \ == 10), \ this_method_does_not_take_10_arguments); \ @@ -11747,7 +11747,7 @@ namespace internal { // The type of the i-th (0-based) field of Tuple. #define GMOCK_FIELD_TYPE_(Tuple, i) \ - typename ::std::tr1::tuple_element::type + typename ::std::tuple_element::type // TupleFields is for selecting fields from a // tuple of type Tuple. It has two members: @@ -11770,7 +11770,7 @@ template class TupleFields { public: - typedef ::std::tr1::tuple class TupleFields { public: - typedef ::std::tr1::tuple<> type; + typedef ::std::tuple<> type; static type GetSelectedFields(const Tuple& /* t */) { using ::std::tr1::get; return type(); @@ -11798,7 +11798,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; + typedef ::std::tuple type; static type GetSelectedFields(const Tuple& t) { using ::std::tr1::get; return type(get(t)); @@ -11808,7 +11808,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; static type GetSelectedFields(const Tuple& t) { using ::std::tr1::get; @@ -11819,7 +11819,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; static type GetSelectedFields(const Tuple& t) { using ::std::tr1::get; @@ -11830,7 +11830,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; static type GetSelectedFields(const Tuple& t) { @@ -11842,7 +11842,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; static type GetSelectedFields(const Tuple& t) { @@ -11854,7 +11854,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; @@ -11868,7 +11868,7 @@ class TupleFields { template class TupleFields { public: - typedef ::std::tr1::tuple type; @@ -11883,7 +11883,7 @@ template class TupleFields { public: - typedef ::std::tr1::tuple class TupleFields { public: - typedef ::std::tr1::tuple > + std::tuple<> > ElementsAre() { - typedef std::tr1::tuple<> Args; + typedef std::tuple<> Args; return internal::ElementsAreMatcher(Args()); } template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type> > ElementsAre(const T1& e1) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type> Args; return internal::ElementsAreMatcher(Args(e1)); } template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type> Args; return internal::ElementsAreMatcher(Args(e1, e2)); @@ -12305,12 +12305,12 @@ ElementsAre(const T1& e1, const T2& e2) { template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> Args; @@ -12319,13 +12319,13 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3) { template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12335,7 +12335,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4) { template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12343,7 +12343,7 @@ inline internal::ElementsAreMatcher< typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12355,7 +12355,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12364,7 +12364,7 @@ inline internal::ElementsAreMatcher< typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12377,7 +12377,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12387,7 +12387,7 @@ inline internal::ElementsAreMatcher< typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12401,7 +12401,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12412,7 +12412,7 @@ inline internal::ElementsAreMatcher< typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12428,7 +12428,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12440,7 +12440,7 @@ inline internal::ElementsAreMatcher< typename internal::DecayArray::type> > ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12457,7 +12457,7 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::ElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12471,7 +12471,7 @@ inline internal::ElementsAreMatcher< ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9, const T10& e10) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12490,29 +12490,29 @@ ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, // that matches n elements in any order. We support up to n=10 arguments. inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple<> > + std::tuple<> > UnorderedElementsAre() { - typedef std::tr1::tuple<> Args; + typedef std::tuple<> Args; return internal::UnorderedElementsAreMatcher(Args()); } template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type> Args; return internal::UnorderedElementsAreMatcher(Args(e1)); } template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type> Args; return internal::UnorderedElementsAreMatcher(Args(e1, e2)); @@ -12520,12 +12520,12 @@ UnorderedElementsAre(const T1& e1, const T2& e2) { template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> Args; @@ -12534,13 +12534,13 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3) { template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12550,7 +12550,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4) { template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12558,7 +12558,7 @@ inline internal::UnorderedElementsAreMatcher< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12570,7 +12570,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12579,7 +12579,7 @@ inline internal::UnorderedElementsAreMatcher< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12593,7 +12593,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12603,7 +12603,7 @@ inline internal::UnorderedElementsAreMatcher< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12618,7 +12618,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12629,7 +12629,7 @@ inline internal::UnorderedElementsAreMatcher< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12645,7 +12645,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12657,7 +12657,7 @@ inline internal::UnorderedElementsAreMatcher< typename internal::DecayArray::type> > UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12674,7 +12674,7 @@ UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, template inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -12688,7 +12688,7 @@ inline internal::UnorderedElementsAreMatcher< UnorderedElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9, const T10& e10) { - typedef std::tr1::tuple< + typedef std::tuple< typename internal::DecayArray::type, typename internal::DecayArray::type, typename internal::DecayArray::type, @@ -13111,7 +13111,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple<>()));\ + ::std::tuple<>()));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ };\ @@ -13160,7 +13160,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0)));\ + ::std::tuple(p0)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ };\ @@ -13213,7 +13213,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1)));\ + ::std::tuple(p0, p1)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ };\ @@ -13271,7 +13271,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, \ + ::std::tuple(p0, p1, \ p2)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ @@ -13334,7 +13334,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ @@ -13405,7 +13405,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3, p4)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ @@ -13479,7 +13479,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3, p4, p5)));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ @@ -13557,7 +13557,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3, p4, p5, \ p6)));\ }\ @@ -13642,7 +13642,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, \ p3, p4, p5, p6, p7)));\ }\ @@ -13733,7 +13733,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3, p4, p5, p6, p7, p8)));\ }\ @@ -13829,7 +13829,7 @@ AnyOf(M1 m1, M2 m2, M3 m3, M4 m4, M5 m5, M6 m6, M7 m7, M8 m8, M9 m9, M10 m10) { return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)));\ }\ @@ -14055,7 +14055,7 @@ ACTION_TEMPLATE(SaveArgPointee, ACTION_TEMPLATE(SetArgReferee, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(value)) { - typedef typename ::std::tr1::tuple_element::type argk_type; + typedef typename ::std::tuple_element::type argk_type; // Ensures that argument #k is a reference. If you get a compiler // error on the next line, you are using SetArgReferee(value) in // a mock function whose k-th (0-based) argument is not a reference. diff --git a/test/gtest/gtest.h b/test/gtest/gtest.h index 52d2ed6d..392e71a1 100644 --- a/test/gtest/gtest.h +++ b/test/gtest/gtest.h @@ -9676,7 +9676,7 @@ inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) { #endif // GTEST_HAS_STD_WSTRING #if GTEST_HAS_TR1_TUPLE -// Overload for ::std::tr1::tuple. Needed for printing function arguments, +// Overload for ::std::tuple. Needed for printing function arguments, // which are packed as tuples. // Helper function for printing a tuple. T must be instantiated with @@ -9689,60 +9689,60 @@ void PrintTupleTo(const T& t, ::std::ostream* os); // regardless of whether tr1::tuple is implemented using the // non-standard variadic template feature or not. -inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) { +inline void PrintTo(const ::std::tuple<>& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, ::std::ostream* os) { +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } template -void PrintTo(const ::std::tr1::tuple& t, +void PrintTo(const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } @@ -9750,7 +9750,7 @@ void PrintTo(const ::std::tr1::tuple& t, template void PrintTo( - const ::std::tr1::tuple& t, + const ::std::tuple& t, ::std::ostream* os) { PrintTupleTo(t, os); } @@ -9969,7 +9969,7 @@ struct TuplePrefixPrinter { static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { TuplePrefixPrinter::PrintPrefixTo(t, os); *os << ", "; - UniversalPrinter::type> + UniversalPrinter::type> ::Print(::std::tr1::get(t), os); } @@ -10002,7 +10002,7 @@ template <> struct TuplePrefixPrinter<1> { template static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { - UniversalPrinter::type>:: + UniversalPrinter::type>:: Print(::std::tr1::get<0>(t), os); } @@ -10019,7 +10019,7 @@ struct TuplePrefixPrinter<1> { template void PrintTupleTo(const T& t, ::std::ostream* os) { *os << "("; - TuplePrefixPrinter< ::std::tr1::tuple_size::value>:: + TuplePrefixPrinter< ::std::tuple_size::value>:: PrintPrefixTo(t, os); *os << ")"; } @@ -10030,7 +10030,7 @@ void PrintTupleTo(const T& t, ::std::ostream* os) { template Strings UniversalTersePrintTupleFieldsToStrings(const Tuple& value) { Strings result; - TuplePrefixPrinter< ::std::tr1::tuple_size::value>:: + TuplePrefixPrinter< ::std::tuple_size::value>:: TersePrintPrefixToStrings(value, &result); return result; } @@ -13777,9 +13777,9 @@ class ValueArray50 { // template class CartesianProductGenerator2 - : public ParamGeneratorInterface< ::std::tr1::tuple > { + : public ParamGeneratorInterface< ::std::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator2(const ParamGenerator& g1, const ParamGenerator& g2) @@ -13892,9 +13892,9 @@ class CartesianProductGenerator2 template class CartesianProductGenerator3 - : public ParamGeneratorInterface< ::std::tr1::tuple > { + : public ParamGeneratorInterface< ::std::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator3(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3) @@ -14024,9 +14024,9 @@ class CartesianProductGenerator3 template class CartesianProductGenerator4 - : public ParamGeneratorInterface< ::std::tr1::tuple > { + : public ParamGeneratorInterface< ::std::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator4(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -14175,9 +14175,9 @@ class CartesianProductGenerator4 template class CartesianProductGenerator5 - : public ParamGeneratorInterface< ::std::tr1::tuple > { + : public ParamGeneratorInterface< ::std::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator5(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -14343,10 +14343,10 @@ class CartesianProductGenerator5 template class CartesianProductGenerator6 - : public ParamGeneratorInterface< ::std::tr1::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator6(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -14529,10 +14529,10 @@ class CartesianProductGenerator6 template class CartesianProductGenerator7 - : public ParamGeneratorInterface< ::std::tr1::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator7(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -14732,10 +14732,10 @@ class CartesianProductGenerator7 template class CartesianProductGenerator8 - : public ParamGeneratorInterface< ::std::tr1::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator8(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -14954,10 +14954,10 @@ class CartesianProductGenerator8 template class CartesianProductGenerator9 - : public ParamGeneratorInterface< ::std::tr1::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator9(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -15193,10 +15193,10 @@ class CartesianProductGenerator9 template class CartesianProductGenerator10 - : public ParamGeneratorInterface< ::std::tr1::tuple > { public: - typedef ::std::tr1::tuple ParamType; + typedef ::std::tuple ParamType; CartesianProductGenerator10(const ParamGenerator& g1, const ParamGenerator& g2, const ParamGenerator& g3, @@ -15458,8 +15458,8 @@ class CartesianProductHolder2 { CartesianProductHolder2(const Generator1& g1, const Generator2& g2) : g1_(g1), g2_(g2) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + operator ParamGenerator< ::std::tuple >() const { + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator2( static_cast >(g1_), static_cast >(g2_))); @@ -15480,8 +15480,8 @@ CartesianProductHolder3(const Generator1& g1, const Generator2& g2, const Generator3& g3) : g1_(g1), g2_(g2), g3_(g3) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + operator ParamGenerator< ::std::tuple >() const { + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator3( static_cast >(g1_), static_cast >(g2_), @@ -15505,8 +15505,8 @@ CartesianProductHolder4(const Generator1& g1, const Generator2& g2, const Generator3& g3, const Generator4& g4) : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + operator ParamGenerator< ::std::tuple >() const { + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator4( static_cast >(g1_), static_cast >(g2_), @@ -15532,8 +15532,8 @@ CartesianProductHolder5(const Generator1& g1, const Generator2& g2, const Generator3& g3, const Generator4& g4, const Generator5& g5) : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + operator ParamGenerator< ::std::tuple >() const { + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator5( static_cast >(g1_), static_cast >(g2_), @@ -15563,8 +15563,8 @@ CartesianProductHolder6(const Generator1& g1, const Generator2& g2, : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + operator ParamGenerator< ::std::tuple >() const { + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator6( static_cast >(g1_), static_cast >(g2_), @@ -15596,9 +15596,9 @@ CartesianProductHolder7(const Generator1& g1, const Generator2& g2, : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator7( static_cast >(g1_), static_cast >(g2_), @@ -15634,9 +15634,9 @@ CartesianProductHolder8(const Generator1& g1, const Generator2& g2, g8_(g8) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( + return ParamGenerator< ::std::tuple >( new CartesianProductGenerator8( static_cast >(g1_), static_cast >(g2_), @@ -15675,9 +15675,9 @@ CartesianProductHolder9(const Generator1& g1, const Generator2& g2, g9_(g9) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( new CartesianProductGenerator9( static_cast >(g1_), @@ -15719,9 +15719,9 @@ CartesianProductHolder10(const Generator1& g1, const Generator2& g2, g9_(g9), g10_(g10) {} template - operator ParamGenerator< ::std::tr1::tuple >() const { - return ParamGenerator< ::std::tr1::tuple >( new CartesianProductGenerator10(