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
3339b97c
Commit
3339b97c
authored
Sep 16, 2019
by
Krystian Kuzniarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
square away the stuff that hasn't been merged in a manual review
This fixes up
f2fb48c3
(a manual merge) that has abandoned some things from PR #2407.
parent
7c2bd3af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
advanced.md
googletest/docs/advanced.md
+1
-1
gtest.h
googletest/include/gtest/gtest.h
+1
-2
No files found.
googletest/docs/advanced.md
View file @
3339b97c
...
...
@@ -465,7 +465,7 @@ You can call the function
to assert that types
`T1`
and
`T2`
are the same. The function does nothing if
the assertion is satisfied. If the types are different, the function call will
fail to compile, the compiler error message will say that
`
type1 and type
2 are not the same type`
and most likely (depending on the compiler)
`
T1 and T
2 are not the same type`
and most likely (depending on the compiler)
show you the actual values of
`T1`
and
`T2`
. This is mainly useful inside
template code.
...
...
googletest/include/gtest/gtest.h
View file @
3339b97c
...
...
@@ -2298,8 +2298,7 @@ class GTEST_API_ ScopedTrace {
// to cause a compiler error.
template
<
typename
T1
,
typename
T2
>
constexpr
bool
StaticAssertTypeEq
()
noexcept
{
static_assert
(
std
::
is_same
<
T1
,
T2
>::
value
,
"type1 and type2 are not the same type"
);
static_assert
(
std
::
is_same
<
T1
,
T2
>::
value
,
"T1 and T2 are not the same type"
);
return
true
;
}
...
...
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