Commit 3bd41ab2 by Abseil Team Committed by Andy Soffer

Internal change

PiperOrigin-RevId: 362216935
parent d0dbf0f6
...@@ -895,16 +895,16 @@ template <typename T> ...@@ -895,16 +895,16 @@ template <typename T>
class HasDebugStringAndShortDebugString { class HasDebugStringAndShortDebugString {
private: private:
template <typename C> 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; std::string, decltype(std::declval<const C>().DebugString())>::type;
template <typename> template <typename>
static constexpr std::false_type CheckDebugString(...); static std::false_type CheckDebugString(...);
template <typename C> 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; std::string, decltype(std::declval<const C>().ShortDebugString())>::type;
template <typename> template <typename>
static constexpr std::false_type CheckShortDebugString(...); static std::false_type CheckShortDebugString(...);
using HasDebugStringType = decltype(CheckDebugString<T>(nullptr)); using HasDebugStringType = decltype(CheckDebugString<T>(nullptr));
using HasShortDebugStringType = decltype(CheckShortDebugString<T>(nullptr)); using HasShortDebugStringType = decltype(CheckShortDebugString<T>(nullptr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment