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
996b65e6
Commit
996b65e6
authored
Jan 05, 2021
by
Abseil Team
Committed by
Derek Mauro
Jan 13, 2021
Browse files
Googletest export
Fix Objective-C++ compatibility PiperOrigin-RevId: 350192165
parent
f8304d76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-printers.h
+3
-1
No files found.
googletest/include/gtest/gtest-printers.h
View file @
996b65e6
...
@@ -266,7 +266,9 @@ struct RawBytesPrinter {
...
@@ -266,7 +266,9 @@ struct RawBytesPrinter {
template
<
typename
T
,
size_t
=
sizeof
(
T
)
>
template
<
typename
T
,
size_t
=
sizeof
(
T
)
>
static
void
PrintValue
(
const
T
&
value
,
::
std
::
ostream
*
os
)
{
static
void
PrintValue
(
const
T
&
value
,
::
std
::
ostream
*
os
)
{
PrintBytesInObjectTo
(
PrintBytesInObjectTo
(
reinterpret_cast
<
const
unsigned
char
*>
(
std
::
addressof
(
value
)),
static_cast
<
const
unsigned
char
*>
(
// Load bearing cast to void* to support iOS
reinterpret_cast
<
const
void
*>
(
std
::
addressof
(
value
))),
sizeof
(
value
),
os
);
sizeof
(
value
),
os
);
}
}
};
};
...
...
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