Internal change

PiperOrigin-RevId: 362216935
This commit is contained in:
Abseil Team 2021-03-11 01:06:15 -05:00 committed by Andy Soffer
parent d0dbf0f6c8
commit 3bd41ab23f

View File

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