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
a3c2e107
"...git@developer.sourcefind.cn:tsoc/superbenchmark.git" did not exist on "6e50f0228f31eab876f5b17f45687f8743c7af5e"
Commit
a3c2e107
authored
Mar 16, 2018
by
Gennadiy Civil
Browse files
cl 189032107, again
parent
080fcbe0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+19
-4
googletest/test/gtest-printers_test.cc
googletest/test/gtest-printers_test.cc
+0
-1
No files found.
googletest/include/gtest/internal/gtest-internal.h
View file @
a3c2e107
...
@@ -933,19 +933,34 @@ struct IsHashTable {
...
@@ -933,19 +933,34 @@ struct IsHashTable {
template
<
typename
T
>
template
<
typename
T
>
const
bool
IsHashTable
<
T
>::
value
;
const
bool
IsHashTable
<
T
>::
value
;
template
<
typename
T
>
struct
VoidT
{
typedef
void
value_type
;
};
template
<
typename
T
,
typename
=
void
>
struct
HasValueType
:
false_type
{};
template
<
typename
T
>
struct
HasValueType
<
T
,
VoidT
<
typename
T
::
value_type
>
>
:
true_type
{
};
template
<
typename
C
,
template
<
typename
C
,
bool
=
sizeof
(
IsContainerTest
<
C
>(
0
))
==
sizeof
(
IsContainer
)
>
bool
=
sizeof
(
IsContainerTest
<
C
>(
0
))
==
sizeof
(
IsContainer
),
bool
=
HasValueType
<
C
>::
value
>
struct
IsRecursiveContainerImpl
;
struct
IsRecursiveContainerImpl
;
template
<
typename
C
>
template
<
typename
C
,
bool
HV
>
struct
IsRecursiveContainerImpl
<
C
,
false
>
:
public
false_type
{};
struct
IsRecursiveContainerImpl
<
C
,
false
,
HV
>
:
public
false_type
{};
// Since the IsRecursiveContainerImpl depends on the IsContainerTest we need to
// Since the IsRecursiveContainerImpl depends on the IsContainerTest we need to
// obey the same inconsistencies as the IsContainerTest, namely check if
// obey the same inconsistencies as the IsContainerTest, namely check if
// something is a container is relying on only const_iterator in C++11 and
// something is a container is relying on only const_iterator in C++11 and
// is relying on both const_iterator and iterator otherwise
// is relying on both const_iterator and iterator otherwise
template
<
typename
C
>
template
<
typename
C
>
struct
IsRecursiveContainerImpl
<
C
,
true
>
{
struct
IsRecursiveContainerImpl
<
C
,
true
,
false
>
:
public
false_type
{};
template
<
typename
C
>
struct
IsRecursiveContainerImpl
<
C
,
true
,
true
>
{
#if GTEST_LANG_CXX11
#if GTEST_LANG_CXX11
typedef
typename
IteratorTraits
<
typename
C
::
const_iterator
>::
value_type
typedef
typename
IteratorTraits
<
typename
C
::
const_iterator
>::
value_type
value_type
;
value_type
;
...
...
googletest/test/gtest-printers_test.cc
View file @
a3c2e107
...
@@ -195,7 +195,6 @@ class PathLike {
...
@@ -195,7 +195,6 @@ class PathLike {
struct
iterator
{
struct
iterator
{
typedef
PathLike
value_type
;
typedef
PathLike
value_type
;
};
};
typedef
iterator
const_iterator
;
PathLike
()
{}
PathLike
()
{}
...
...
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