Internal change
PiperOrigin-RevId: 362216935
This commit is contained in:
parent
d0dbf0f6c8
commit
3bd41ab23f
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user