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); } };