Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
2989703e
Commit
2989703e
authored
Jun 20, 2013
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes uses of pair to std::pair; pulls in gtest r655.
parent
616180e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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> {
...
@@ -1418,7 +1418,7 @@ class BothOfMatcherImpl : public MatcherInterface<T> {
template
<
int
kSize
,
typename
Head
,
typename
...
Tail
>
template
<
int
kSize
,
typename
Head
,
typename
...
Tail
>
struct
MatcherList
{
struct
MatcherList
{
typedef
MatcherList
<
kSize
-
1
,
Tail
...
>
MatcherListTail
;
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.
// BuildList stores variadic type values in a nested pair structure.
// Example:
// Example:
...
@@ -1445,11 +1445,11 @@ struct MatcherList {
...
@@ -1445,11 +1445,11 @@ struct MatcherList {
// MatcherList.
// MatcherList.
template
<
typename
Matcher1
,
typename
Matcher2
>
template
<
typename
Matcher1
,
typename
Matcher2
>
struct
MatcherList
<
2
,
Matcher1
,
Matcher2
>
{
struct
MatcherList
<
2
,
Matcher1
,
Matcher2
>
{
typedef
pair
<
Matcher1
,
Matcher2
>
ListType
;
typedef
::
std
::
pair
<
Matcher1
,
Matcher2
>
ListType
;
static
ListType
BuildList
(
const
Matcher1
&
matcher1
,
static
ListType
BuildList
(
const
Matcher1
&
matcher1
,
const
Matcher2
&
matcher2
)
{
const
Matcher2
&
matcher2
)
{
return
pair
<
Matcher1
,
Matcher2
>
(
matcher1
,
matcher2
);
return
::
std
::
pair
<
Matcher1
,
Matcher2
>
(
matcher1
,
matcher2
);
}
}
template
<
typename
T
,
template
<
typename
/* T */
>
class
CombiningMatcher
>
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