mirror of
https://github.com/google/googletest.git
synced 2024-12-29 03:33:40 +08:00
add a cast
This commit is contained in:
parent
7c6353d29a
commit
9a8794faed
@ -137,7 +137,8 @@ class TypeWithoutFormatter {
|
|||||||
public:
|
public:
|
||||||
// This default version is called when kTypeKind is kOtherType.
|
// This default version is called when kTypeKind is kOtherType.
|
||||||
static void PrintValue(const T& value, ::std::ostream* os) {
|
static void PrintValue(const T& value, ::std::ostream* os) {
|
||||||
PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(&value),
|
PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(
|
||||||
|
reinterpret_cast<const void *>(&value)),
|
||||||
sizeof(value), os);
|
sizeof(value), os);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user