diff options
author | kosak <kosak@google.com> | 2014-04-02 20:30:00 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2014-04-02 20:30:00 +0000 |
commit | bd0188320de5aab1b09718e2c466387099d43cfb (patch) | |
tree | b89ba1d8bbac289a5e83c5a4fd71e5b8b1b53bd4 /include/gmock/gmock-generated-matchers.h.pump | |
parent | 15d61e42bdd4182e7c4b50bcb3314b006ce578c7 (diff) | |
download | googletest-bd0188320de5aab1b09718e2c466387099d43cfb.tar.gz googletest-bd0188320de5aab1b09718e2c466387099d43cfb.tar.bz2 googletest-bd0188320de5aab1b09718e2c466387099d43cfb.zip |
Export tuple and friends in the ::testing namespace.
Diffstat (limited to 'include/gmock/gmock-generated-matchers.h.pump')
-rw-r--r-- | include/gmock/gmock-generated-matchers.h.pump | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/gmock/gmock-generated-matchers.h.pump b/include/gmock/gmock-generated-matchers.h.pump index af02acbc..4b618a43 100644 --- a/include/gmock/gmock-generated-matchers.h.pump +++ b/include/gmock/gmock-generated-matchers.h.pump @@ -53,7 +53,7 @@ $range i 0..n-1 // The type of the i-th (0-based) field of Tuple. #define GMOCK_FIELD_TYPE_(Tuple, i) \ - typename ::std::tr1::tuple_element<i, Tuple>::type + typename ::testing::tuple_element<i, Tuple>::type // TupleFields<Tuple, k0, ..., kn> is for selecting fields from a // tuple of type Tuple. It has two members: @@ -73,9 +73,8 @@ class TupleFields; template <class Tuple$for i [[, int k$i]]> class TupleFields { public: - typedef ::std::tr1::tuple<$for i, [[GMOCK_FIELD_TYPE_(Tuple, k$i)]]> type; + typedef ::testing::tuple<$for i, [[GMOCK_FIELD_TYPE_(Tuple, k$i)]]> type; static type GetSelectedFields(const Tuple& t) { - using ::std::tr1::get; return type($for i, [[get<k$i>(t)]]); } }; @@ -90,9 +89,8 @@ $range k 0..n-1 template <class Tuple$for j [[, int k$j]]> class TupleFields<Tuple, $for k, [[$if k < i [[k$k]] $else [[-1]]]]> { public: - typedef ::std::tr1::tuple<$for j, [[GMOCK_FIELD_TYPE_(Tuple, k$j)]]> type; + typedef ::testing::tuple<$for j, [[GMOCK_FIELD_TYPE_(Tuple, k$j)]]> type; static type GetSelectedFields(const Tuple& $if i==0 [[/* t */]] $else [[t]]) { - using ::std::tr1::get; return type($for j, [[get<k$j>(t)]]); } }; @@ -289,12 +287,12 @@ template <$for j, [[typename T$j]]> ]] inline internal::ElementsAreMatcher< - std::tr1::tuple< + ::testing::tuple< $for j, [[ typename internal::DecayArray<T$j[[]]>::type]]> > ElementsAre($for j, [[const T$j& e$j]]) { - typedef std::tr1::tuple< + typedef ::testing::tuple< $for j, [[ typename internal::DecayArray<T$j[[]]>::type]]> Args; @@ -317,12 +315,12 @@ template <$for j, [[typename T$j]]> ]] inline internal::UnorderedElementsAreMatcher< - std::tr1::tuple< + ::testing::tuple< $for j, [[ typename internal::DecayArray<T$j[[]]>::type]]> > UnorderedElementsAre($for j, [[const T$j& e$j]]) { - typedef std::tr1::tuple< + typedef ::testing::tuple< $for j, [[ typename internal::DecayArray<T$j[[]]>::type]]> Args; @@ -646,7 +644,7 @@ $var param_field_decls2 = [[$for j return ::testing::internal::FormatMatcherDescription(\ negation, #name, \ ::testing::internal::UniversalTersePrintTupleFieldsToStrings(\ - ::std::tr1::tuple<$for j, [[p$j##_type]]>($for j, [[p$j]])));\ + ::testing::tuple<$for j, [[p$j##_type]]>($for j, [[p$j]])));\ }\ GTEST_DISALLOW_ASSIGN_(gmock_Impl);\ };\ |