Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 362216935
  • Loading branch information
Abseil Team authored and Andy Soffer committed Mar 16, 2021
1 parent d0dbf0f commit 3bd41ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions googletest/include/gtest/internal/gtest-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -895,16 +895,16 @@ template <typename T>
class HasDebugStringAndShortDebugString {
private:
template <typename C>
static constexpr auto CheckDebugString(C*) -> typename std::is_same<
static auto CheckDebugString(C*) -> typename std::is_same<
std::string, decltype(std::declval<const C>().DebugString())>::type;
template <typename>
static constexpr std::false_type CheckDebugString(...);
static std::false_type CheckDebugString(...);

template <typename C>
static constexpr auto CheckShortDebugString(C*) -> typename std::is_same<
static auto CheckShortDebugString(C*) -> typename std::is_same<
std::string, decltype(std::declval<const C>().ShortDebugString())>::type;
template <typename>
static constexpr std::false_type CheckShortDebugString(...);
static std::false_type CheckShortDebugString(...);

using HasDebugStringType = decltype(CheckDebugString<T>(nullptr));
using HasShortDebugStringType = decltype(CheckShortDebugString<T>(nullptr));
Expand Down

0 comments on commit 3bd41ab

Please sign in to comment.