Merge pull request #1249 from stkhapugin/master

Make TypeWithoutFormatter compatible with Objective-C++ with ARC.
This commit is contained in:
Gennadiy Civil 2017-09-23 16:21:02 -07:00 committed by GitHub
commit f1a87d73fc

View File

@ -137,7 +137,8 @@ class TypeWithoutFormatter {
public:
// This default version is called when kTypeKind is kOtherType.
static void PrintValue(const T& value, ::std::ostream* os) {
PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(&value),
PrintBytesInObjectTo(static_cast<const unsigned char*>(
reinterpret_cast<const void *>(&value)),
sizeof(value), os);
}
};