44// found in the LICENSE file.
55//
66
7+ #include < tuple>
8+
79#include " PreprocessorTest.h"
810#include " compiler/preprocessor/Token.h"
911
@@ -31,15 +33,15 @@ INSTANTIATE_TEST_CASE_P(InvalidIntegers, InvalidNumberTest,
3133INSTANTIATE_TEST_CASE_P (InvalidFloats, InvalidNumberTest,
3234 testing::Values (" 1eg" , " 0.a" , " 0.1.2" , " .0a" , " .0.1" ));
3335
34- typedef std::tr1:: tuple<const char *, char > IntegerParams;
36+ typedef std::tuple<const char *, char > IntegerParams;
3537class IntegerTest : public SimplePreprocessorTest , public testing ::WithParamInterface<IntegerParams>
3638{
3739};
3840
3941TEST_P (IntegerTest, Identified)
4042{
41- std::string str (std::tr1:: get<0 >(GetParam ())); // prefix.
42- str.push_back (std::tr1:: get<1 >(GetParam ())); // digit.
43+ std::string str (std::get<0 >(GetParam ())); // prefix.
44+ str.push_back (std::get<1 >(GetParam ())); // digit.
4345 const char * cstr = str.c_str ();
4446
4547 pp::Token token;
@@ -87,7 +89,7 @@ class FloatTest : public SimplePreprocessorTest
8789 }
8890};
8991
90- typedef std::tr1:: tuple<char , char , const char *, char > FloatScientificParams;
92+ typedef std::tuple<char , char , const char *, char > FloatScientificParams;
9193class FloatScientificTest :
9294 public FloatTest,
9395 public testing::WithParamInterface<FloatScientificParams>
@@ -98,10 +100,10 @@ class FloatScientificTest :
98100TEST_P (FloatScientificTest, FloatIdentified)
99101{
100102 std::string str;
101- str.push_back (std::tr1:: get<0 >(GetParam ())); // significand [0-9].
102- str.push_back (std::tr1:: get<1 >(GetParam ())); // separator [eE].
103- str.append (std::tr1:: get<2 >(GetParam ())); // sign [" " "+" "-"].
104- str.push_back (std::tr1:: get<3 >(GetParam ())); // exponent [0-9].
103+ str.push_back (std::get<0 >(GetParam ())); // significand [0-9].
104+ str.push_back (std::get<1 >(GetParam ())); // separator [eE].
105+ str.append (std::get<2 >(GetParam ())); // sign [" " "+" "-"].
106+ str.push_back (std::get<3 >(GetParam ())); // exponent [0-9].
105107
106108 SCOPED_TRACE (" FloatScientificTest" );
107109 expectFloat (str);
@@ -114,7 +116,7 @@ INSTANTIATE_TEST_CASE_P(FloatScientific,
114116 testing::Values(" " , " +" , " -" ),
115117 CLOSED_RANGE(' 0' , ' 9' )));
116118
117- typedef std::tr1:: tuple<char , char > FloatFractionParams;
119+ typedef std::tuple<char , char > FloatFractionParams;
118120class FloatFractionTest :
119121 public FloatTest,
120122 public testing::WithParamInterface<FloatFractionParams>
@@ -126,13 +128,13 @@ TEST_P(FloatFractionTest, FloatIdentified)
126128{
127129 std::string str;
128130
129- char significand = std::tr1:: get<0 >(GetParam ());
131+ char significand = std::get<0 >(GetParam ());
130132 if (significand != ' \0 ' )
131133 str.push_back (significand);
132134
133135 str.push_back (' .' );
134136
135- char fraction = std::tr1:: get<1 >(GetParam ());
137+ char fraction = std::get<1 >(GetParam ());
136138 if (fraction != ' \0 ' )
137139 str.push_back (fraction);
138140
0 commit comments