From 996b65e64e415c683d7f15ee5926d66309425ce8 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 5 Jan 2021 15:09:16 -0500 Subject: [PATCH] Googletest export Fix Objective-C++ compatibility PiperOrigin-RevId: 350192165 --- googletest/include/gtest/gtest-printers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h index d3292247..1f72b780 100644 --- a/googletest/include/gtest/gtest-printers.h +++ b/googletest/include/gtest/gtest-printers.h @@ -266,7 +266,9 @@ struct RawBytesPrinter { template static void PrintValue(const T& value, ::std::ostream* os) { PrintBytesInObjectTo( - reinterpret_cast(std::addressof(value)), + static_cast( + // Load bearing cast to void* to support iOS + reinterpret_cast(std::addressof(value))), sizeof(value), os); } };