Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
2989703e
Commit
2989703e
authored
Jun 20, 2013
by
zhanyong.wan
Browse files
Fixes uses of pair to std::pair; pulls in gtest r655.
parent
616180e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/gmock/gmock-matchers.h
include/gmock/gmock-matchers.h
+3
-3
No files found.
include/gmock/gmock-matchers.h
View file @
2989703e
...
...
@@ -1418,7 +1418,7 @@ class BothOfMatcherImpl : public MatcherInterface<T> {
template
<
int
kSize
,
typename
Head
,
typename
...
Tail
>
struct
MatcherList
{
typedef
MatcherList
<
kSize
-
1
,
Tail
...
>
MatcherListTail
;
typedef
pair
<
Head
,
typename
MatcherListTail
::
ListType
>
ListType
;
typedef
::
std
::
pair
<
Head
,
typename
MatcherListTail
::
ListType
>
ListType
;
// BuildList stores variadic type values in a nested pair structure.
// Example:
...
...
@@ -1445,11 +1445,11 @@ struct MatcherList {
// MatcherList.
template
<
typename
Matcher1
,
typename
Matcher2
>
struct
MatcherList
<
2
,
Matcher1
,
Matcher2
>
{
typedef
pair
<
Matcher1
,
Matcher2
>
ListType
;
typedef
::
std
::
pair
<
Matcher1
,
Matcher2
>
ListType
;
static
ListType
BuildList
(
const
Matcher1
&
matcher1
,
const
Matcher2
&
matcher2
)
{
return
pair
<
Matcher1
,
Matcher2
>
(
matcher1
,
matcher2
);
return
::
std
::
pair
<
Matcher1
,
Matcher2
>
(
matcher1
,
matcher2
);
}
template
<
typename
T
,
template
<
typename
/* T */
>
class
CombiningMatcher
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment