Commit 996b65e6 authored by Abseil Team's avatar Abseil Team Committed by Derek Mauro
Browse files

Googletest export

Fix Objective-C++ compatibility

PiperOrigin-RevId: 350192165
parent f8304d76
...@@ -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);
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment