Merge branch 'master' into fix-issue-776-support-autoconf-as-submodule
This commit is contained in:
commit
26addade17
@ -427,13 +427,8 @@ void DefaultPrintTo(WrapPrinterType<kPrintFunctionPointer> /* dummy */,
|
|||||||
*os << "NULL";
|
*os << "NULL";
|
||||||
} else {
|
} else {
|
||||||
// T is a function type, so '*os << p' doesn't do what we want
|
// T is a function type, so '*os << p' doesn't do what we want
|
||||||
// (it just prints p as bool). We want to print p as a const
|
// (it just prints p as bool). Cast p to const void* to print it.
|
||||||
// void*. However, we cannot cast it to const void* directly,
|
*os << reinterpret_cast<const void*>(p);
|
||||||
// even using reinterpret_cast, as earlier versions of gcc
|
|
||||||
// (e.g. 3.4.5) cannot compile the cast when p is a function
|
|
||||||
// pointer. Casting to UInt64 first solves the problem.
|
|
||||||
*os << reinterpret_cast<const void*>(
|
|
||||||
reinterpret_cast<internal::UInt64>(p));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -827,7 +827,7 @@ using ::std::tuple_size;
|
|||||||
// Determines whether to support Combine().
|
// Determines whether to support Combine().
|
||||||
// The implementation doesn't work on Sun Studio since it doesn't
|
// The implementation doesn't work on Sun Studio since it doesn't
|
||||||
// understand templated conversion operators.
|
// understand templated conversion operators.
|
||||||
#if GTEST_HAS_TR1_TUPLE && !defined(__SUNPRO_CC)
|
#if (GTEST_HAS_TR1_TUPLE || GTEST_HAS_STD_TUPLE_) && !defined(__SUNPRO_CC)
|
||||||
# define GTEST_HAS_COMBINE 1
|
# define GTEST_HAS_COMBINE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user